From 73c12cc1c74b8a121f078fc8c87909ab42eb8c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Sat, 17 Oct 2026 16:34:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B8=A6detailNo?= =?UTF-8?q?=E8=B7=B3=E8=BD=AC=E6=AD=A3=E5=BC=8F=E7=BB=93=E7=AE=97=E5=8D=95?= =?UTF-8?q?=E6=97=B6=E7=BC=93=E5=AD=98=E5=AE=9E=E4=BE=8B=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E6=9F=A5=E7=9C=8B=E5=BC=B9=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/settlement/formal-settlement.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/settlement/formal-settlement.vue b/src/views/settlement/formal-settlement.vue index c4b9da0..bbd00d3 100644 --- a/src/views/settlement/formal-settlement.vue +++ b/src/views/settlement/formal-settlement.vue @@ -253,6 +253,10 @@ export default { if (detailNo) this.openRouteDetail(detailNo); }, }, + created() { + // 标签机制按 fullPath 缓存同页多实例:仅当前路由实例应响应 detailNo 跳转,防止缓存旧实例也弹窗 + this.ownFullPath = this.$route.fullPath; + }, mounted() { this.loadOrganizationOptions(); this.loadTable(); @@ -342,7 +346,7 @@ export default { }, async openRouteDetail(detailNo = this.$route.query.detailNo) { const formalSettlementNo = String(detailNo || '').trim(); - if (!formalSettlementNo) return; + if (!formalSettlementNo || this.ownFullPath !== this.$route.fullPath) return; const response = await api.getList(1, 10, { formalSettlementNo }); const data = this.unwrapData(response); const row = (data.records || []).find(item => item.formalSettlementNo === formalSettlementNo);