From 3bceee2290efe837017e3555f367b20fb86b7dea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=B0=B8=E8=B6=85?= <2090205686@qq.com> Date: Fri, 8 Aug 2025 10:26:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E5=9C=B0=E5=9D=80=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E9=80=92=E5=BD=92=E6=96=B9=E6=B3=95=E4=BC=9A=E9=80=A0?= =?UTF-8?q?=E6=88=90=E5=86=85=E5=AD=98=E6=BA=A2=E5=87=BA=EF=BC=8C=E5=85=88?= =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=8E=89=E4=BA=86=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?permission.js=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/src/utils/permission.js | 1 + sub-operation-service/src/utils/permission.js | 1 + .../src/views/userCenter/addressList.vue | 11 +++++------ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/main/src/utils/permission.js b/main/src/utils/permission.js index 8880f74..5341490 100644 --- a/main/src/utils/permission.js +++ b/main/src/utils/permission.js @@ -53,6 +53,7 @@ router.beforeEach(async (to, from, next) => { } else { next(`/login?redirect=${to.path}`); } + window.location.reload(); // 强制刷新以重置路由,避免卡在白屏 } }); diff --git a/sub-operation-service/src/utils/permission.js b/sub-operation-service/src/utils/permission.js index 68d91ec..6eebc50 100644 --- a/sub-operation-service/src/utils/permission.js +++ b/sub-operation-service/src/utils/permission.js @@ -52,6 +52,7 @@ router.beforeEach(async (to, from, next) => { } else { next(`/login?redirect=${to.path}`); } + window.location.reload(); // 强制刷新以重置路由,避免卡在白屏 } }); diff --git a/sub-operation-service/src/views/userCenter/addressList.vue b/sub-operation-service/src/views/userCenter/addressList.vue index bb8459e..6cabc90 100644 --- a/sub-operation-service/src/views/userCenter/addressList.vue +++ b/sub-operation-service/src/views/userCenter/addressList.vue @@ -1,7 +1,7 @@