134. 加油站

This commit is contained in:
2026-03-18 15:16:04 +08:00
parent e3f139aeaf
commit 980a8767f9
3 changed files with 5924 additions and 5893 deletions

View File

@@ -126,7 +126,7 @@
"unplugin-auto-import": "^0.16.0", "unplugin-auto-import": "^0.16.0",
"unplugin-element-plus": "^0.7.1", "unplugin-element-plus": "^0.7.1",
"unplugin-vue-components": "^0.24.1", "unplugin-vue-components": "^0.24.1",
"vite": "4.3.8", "vite": "^5.4.21",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-ejs": "^1.6.4", "vite-plugin-ejs": "^1.6.4",
"vite-plugin-eslint": "^1.8.1", "vite-plugin-eslint": "^1.8.1",

View File

@@ -24,6 +24,7 @@ const whiteList = [
'/bind', '/bind',
'/register', '/register',
'/swagger' '/swagger'
// '/crm/'
] ]
// 路由加载前 // 路由加载前
@@ -81,8 +82,8 @@ router.beforeEach(async (to, from, next) => {
if (tenantId && appId) { if (tenantId && appId) {
next(`/login?tenantId=${tenantId}&appId=${appId}&redirect=${to.fullPath}`) // 否则全部重定向到登录页 next(`/login?tenantId=${tenantId}&appId=${appId}&redirect=${to.fullPath}`) // 否则全部重定向到登录页
} else { } else {
// next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页 // next(`/login?redirect=${to.fullPath}`) // 使用内部路由重定向到登录页
window.location.href = 'https://cloud.ahduima.com/ss/login' window.location.href = 'https://cloud.ahduima.com/ss/login' // 已注释:避免外部跳转
} }
} }
} }

11810
yarn.lock

File diff suppressed because it is too large Load Diff