[FIX] 修復取貨碼新增表單的 Alpine.js 錯誤
1. 為新增取貨碼表單補上 x-ref="createForm",解決無法提交表單的 ReferenceError。 2. 修正貨道加載器的 isLoadingTable 未定義錯誤,改用正確的 loadingSlots 狀態。
This commit is contained in:
parent
fa6406b9ad
commit
86449ea36a
@ -226,7 +226,7 @@ transition-all duration-300",
|
||||
</div>
|
||||
|
||||
<form action="{{ route('admin.sales.pickup-codes.store') }}" method="POST" class="space-y-6"
|
||||
@submit.prevent="validateAndSubmit">
|
||||
@submit.prevent="validateAndSubmit" x-ref="createForm">
|
||||
@csrf
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
||||
<div class="space-y-2">
|
||||
@ -250,7 +250,7 @@ transition-all duration-300",
|
||||
{{-- Rebuilt by Alpine --}}
|
||||
</div>
|
||||
<div x-show="loadingSlots" class="absolute right-12 top-1/2 -translate-y-1/2 z-10">
|
||||
<x-luxury-spinner size="sm" />
|
||||
<x-luxury-spinner show="loadingSlots" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user