From 89380e6260a75d1d3b94de687ebcc2f50d50659d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 03 Feb 2026 15:44:33 +0800
Subject: [PATCH] feat:环境变量配置调整
---
applications/task-work-order/src/permission.js | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/applications/task-work-order/src/permission.js b/applications/task-work-order/src/permission.js
index 6df8ee9..01156ea 100644
--- a/applications/task-work-order/src/permission.js
+++ b/applications/task-work-order/src/permission.js
@@ -59,14 +59,14 @@
let toMenu = findRouteByPath(newMenu, to.path)
- store.commit('ADD_TAG', {
- name: firstMenu.name,
- path: firstMenu.path,
- fullPath: firstMenu.path,
- params: firstMenu.params || {},
- query: firstMenu.query || {},
- meta: firstMenu.meta || {},
- })
+ // store.commit('ADD_TAG', {
+ // name: firstMenu.name,
+ // path: firstMenu.path,
+ // fullPath: firstMenu.path,
+ // params: firstMenu.params || {},
+ // query: firstMenu.query || {},
+ // meta: firstMenu.meta || {},
+ // })
store.commit('ADD_TAG', {
name: toMenu.name,
path: toMenu.path,
@@ -120,7 +120,8 @@
if (meta.isAuth === false) {
next()
} else {
- env === 'development' ? next('/login') : window.location.replace(`${adminUrl}#/login`)
+ next('/login')
+ // env === 'development' ? next('/login') : window.location.replace(`${adminUrl}#/login`)
}
}
})
@@ -135,7 +136,7 @@
NProgress.done()
const isLoginPage = to.path === '/login'
// 根据是否登录页设置标题
- const pageTitle = isLoginPage ? '中图智飞低空感知网平台' : '综合管理平台'
+ const pageTitle = isLoginPage ? '任务工单平台' : '综合管理平台'
document.title = pageTitle
store.commit('SET_IS_SEARCH', false)
})
--
Gitblit v1.9.3