fix(back): platform-orders/create back 预清洗 + 表单 hidden back 条件渲染护栏

This commit is contained in:
萝卜
2026-03-14 01:35:28 +00:00
parent 5e06df9360
commit c4b3769458
3 changed files with 52 additions and 1 deletions

View File

@@ -29,7 +29,13 @@
@csrf
<input type="hidden" name="site_subscription_id" value="{{ old('site_subscription_id', $defaults['site_subscription_id'] ?? '') }}">
<input type="hidden" name="back" value="{{ old('back', $defaults['back'] ?? '') }}">
@php
$backVal = (string) old('back', $defaults['back'] ?? '');
@endphp
@if($backVal !== '')
<input type="hidden" name="back" value="{{ $backVal }}">
@endif
<label>
<span>站点</span>