From 0b4127a0e2d3bce3c6b315ff69db1951e243a1af Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Fri, 15 May 2026 13:47:35 +0800 Subject: [PATCH] =?UTF-8?q?CRM=5F26-04-22#story#8495,=E6=BD=9C=E5=9C=A8?= =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86H5=E9=A1=B5=E9=9D=A2=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E4=BF=A1=E6=81=AF=EF=BC=8C=E4=BF=A1=E6=81=AF=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=EF=BC=8C=E6=8F=90=E4=BA=A4=E8=A1=A5=E5=85=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E4=B8=8E=E9=80=80=E5=9B=9E=E7=90=86=E7=94=B1=E7=9A=84?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8E=E4=BF=AE=E5=A4=8D(=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9--=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=B7=B3=E8=BD=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/supplierAdd.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/index/supplierAdd.vue b/src/views/index/supplierAdd.vue index e9970da3..fafa9480 100644 --- a/src/views/index/supplierAdd.vue +++ b/src/views/index/supplierAdd.vue @@ -203,13 +203,14 @@ }, async mounted() { const lastRoute = localStorage.getItem('lastRoute'); - if (lastRoute) { + this.id = this.$route.query.id || urlParams.get('id'); + if (lastRoute && !this.id) { const { name, query } = JSON.parse(lastRoute); this.$router.replace({ name, query }); return; } const urlParams = new URLSearchParams(window.location.search); - this.id = this.$route.query.id || urlParams.get('id'); + await this.getAreaTree(); if(this.id) { await this.getInfoHandler();