[FIX] 修正商品分類頁多餘 </div> 導致 Alpine 範圍崩壞

1. 移除 tab-categories.blade.php 手機版卡片區塊多出的一個 </div>(原本 20 個 <div 卻有 21 個 </div>)。
2. 該多餘結束標籤在 @forelse 迴圈內提前關閉外層容器,連鎖將整個 x-data="productManager" 元件 div 提前關閉。
3. 修正後操作紀錄 (logs) tab、編輯分類 modal (openCategoryModal)、匯入 modal (isImportModalOpen) 重新回到 Alpine 元件範圍內,消除 activeTab/tabLoading/isImportModalOpen is not defined 等錯誤。
4. 後端邏輯未變動,原本操作紀錄已正常寫入資料庫,僅前端因範圍崩壞無法切換 tab 與開啟編輯。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
sky121113 2026-06-10 16:11:27 +08:00
parent 378332be25
commit 2b25c5bebf

View File

@ -161,7 +161,6 @@
{{ __('Edit') }}
</button>
</div>
</div>
</div>
@empty
<div class="col-span-full py-20 text-center">