feat: plan store/update respect back redirect

This commit is contained in:
萝卜
2026-03-13 21:55:02 +00:00
parent 91c6921362
commit 8cd258f204
3 changed files with 29 additions and 2 deletions

View File

@@ -12,6 +12,11 @@
<form method="post" action="{{ $formAction }}" class="card form-grid">
@csrf
@php $back = (string) ($back ?? ''); @endphp
@if($back !== '')
<input type="hidden" name="back" value="{{ $back }}">
@endif
<label>
<span>套餐名称</span>
<input name="name" value="{{ old('name', $plan->name) }}" required>