fix: 修正全系統側邊欄捲軸重置問題
在所有報表與管理頁面的 router.get 調用中加入 preserveScroll: true。 受影響模組包括: - 財務管理 (會計報表、公用事業費) - 庫存管理 (庫存查詢、倉庫管理、進貨、調整、調撥) - 生產管理 (工單管理、配方管理) - 採購管理 (採購單) - 銷售與發貨管理 (銷售單、發貨單、匯入管理) - 系統管理 (使用者、角色、操作紀錄)
This commit is contained in:
@@ -41,14 +41,14 @@ export default function ShippingOrderIndex({ orders, filters, warehouses }: Prop
|
||||
search,
|
||||
status: status === 'all' ? undefined : status,
|
||||
},
|
||||
{ preserveState: true, replace: true }
|
||||
{ preserveState: true, replace: true, preserveScroll: true }
|
||||
);
|
||||
};
|
||||
|
||||
const handleReset = () => {
|
||||
setSearch("");
|
||||
setStatus("all");
|
||||
router.get(route('delivery-notes.index'));
|
||||
router.get(route('delivery-notes.index'), {}, { preserveScroll: true });
|
||||
};
|
||||
|
||||
const getStatusBadge = (status: string) => {
|
||||
|
||||
Reference in New Issue
Block a user