diff --git a/main/.env.development b/main/.env.development index c433f4c..4d9cc31 100644 --- a/main/.env.development +++ b/main/.env.development @@ -16,6 +16,6 @@ VITE_APP_UPLOAD_API = '/uploadApis' # VITE_APP_BASE_URL = 'http://47.109.205.240:8080' # VITE_APP_UPLOAD_URL = 'http://47.109.205.240:9300' # 内网接口地址 -VITE_APP_BASE_URL = 'http://192.168.18.88:8080' -VITE_APP_UPLOAD_URL = 'http://192.168.18.88:8080' +VITE_APP_BASE_URL = 'http://192.168.18.99:8080' +VITE_APP_UPLOAD_URL = 'http://192.168.18.99:8080' VITE_APP_VIST_URL = 'http://192.168.18.99' 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/layouts/component/Header/index.vue b/sub-operation-service/src/layouts/component/Header/index.vue index 500bd3e..2daac33 100644 --- a/sub-operation-service/src/layouts/component/Header/index.vue +++ b/sub-operation-service/src/layouts/component/Header/index.vue @@ -3,7 +3,7 @@