From 6c7f8dbe616d853e6aeba3c36d67199fecd0de4e Mon Sep 17 00:00:00 2001 From: yueli Date: Mon, 3 Aug 2026 13:25:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E5=BC=B9=E7=AA=97=E6=97=A0=E6=B3=95=E6=89=93?= =?UTF-8?q?=E5=BC=80=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AppMain.vue: 将 router-view 的 key 从 route.fullPath 改为 route.path,避免 query 参数变化导致组件销毁重建 - list.vue: watch 中 router.replace 增加 query 非空判断,防止不必要的 URL 清理 - list.vue: handleEdit 的 nextTick 增加 try-catch 防御性保护 - list.vue: 添加 onUnmounted 调试探针 --- .../src/layout/components/AppMain.vue | 2 +- inventory-web/src/views/material/list.vue | 63 +++++++++++-------- 2 files changed, 38 insertions(+), 27 deletions(-) diff --git a/inventory-web/src/layout/components/AppMain.vue b/inventory-web/src/layout/components/AppMain.vue index b588ffd..bf3922d 100644 --- a/inventory-web/src/layout/components/AppMain.vue +++ b/inventory-web/src/layout/components/AppMain.vue @@ -1,7 +1,7 @@ diff --git a/inventory-web/src/views/material/list.vue b/inventory-web/src/views/material/list.vue index 12b9dbc..12607d2 100644 --- a/inventory-web/src/views/material/list.vue +++ b/inventory-web/src/views/material/list.vue @@ -711,7 +711,7 @@