|
|
@@ -14,6 +14,9 @@ export const HIDE_FOOTERS = [
|
|
|
'/form/advanced'
|
|
|
];
|
|
|
|
|
|
+// 系统名称
|
|
|
+export const SYSTEM_NAME = 'mes';
|
|
|
+
|
|
|
// 页签同路由不同参数可重复打开的路由
|
|
|
export const REPEATABLE_TABS = [];
|
|
|
|
|
|
@@ -25,62 +28,6 @@ export const KEEP_ALIVE_EXCLUDES = [];
|
|
|
|
|
|
// 直接指定菜单数据
|
|
|
export const USER_MENUS = undefined;
|
|
|
-// [
|
|
|
-// {
|
|
|
-// path: '/dashboard',
|
|
|
-// redirect: '/dashboard/user',
|
|
|
-// meta: { title: '流程管理', icon: 'el-icon-setting' }
|
|
|
-// },
|
|
|
-// {
|
|
|
-// path: '/system',
|
|
|
-// redirect: '/system/user',
|
|
|
-// meta: { title: '流程管理', icon: 'el-icon-setting' },
|
|
|
-// children: [
|
|
|
-// {
|
|
|
-// path: '/system/user',
|
|
|
-// component: '/system/user',
|
|
|
-// meta: { title: '流程定义', icon: 'el-icon-user', hide: false }
|
|
|
-// },
|
|
|
-// {
|
|
|
-// path: '/system/user',
|
|
|
-// component: '/system/user',
|
|
|
-// meta: { title: '流程审批', icon: 'el-icon-user', hide: false }
|
|
|
-// },
|
|
|
-// {
|
|
|
-// path: '/system/user',
|
|
|
-// component: '/system/user',
|
|
|
-// meta: { title: '流程实列', icon: 'el-icon-user', hide: false }
|
|
|
-// }
|
|
|
-// ]
|
|
|
-// },
|
|
|
-// {
|
|
|
-// path: '/system',
|
|
|
-// redirect: '/system/user',
|
|
|
-// meta: { title: '授权管理', icon: 'el-icon-setting' },
|
|
|
-// children: [
|
|
|
-// {
|
|
|
-// path: '/system/user',
|
|
|
-// component: '/system/user',
|
|
|
-// meta: { title: '用户管理', icon: 'el-icon-user', hide: false }
|
|
|
-// },
|
|
|
-// {
|
|
|
-// path: '/system/user',
|
|
|
-// component: '/system/user',
|
|
|
-// meta: { title: '角色管理', icon: 'el-icon-user', hide: false }
|
|
|
-// },
|
|
|
-// {
|
|
|
-// path: '/system/user',
|
|
|
-// component: '/system/user',
|
|
|
-// meta: { title: '租户管理', icon: 'el-icon-user', hide: false }
|
|
|
-// },
|
|
|
-// {
|
|
|
-// path: '/system/user',
|
|
|
-// component: '/system/user',
|
|
|
-// meta: { title: '菜单管理', icon: 'el-icon-user', hide: false }
|
|
|
-// }
|
|
|
-// ]
|
|
|
-// }
|
|
|
-// ];
|
|
|
|
|
|
// 首页名称, 为空则取第一个菜单的名称
|
|
|
export const HOME_TITLE = undefined;
|
|
|
@@ -102,10 +49,14 @@ export const TAB_KEEP_ALIVE = true;
|
|
|
export const TOKEN_HEADER_NAME = 'Authorization';
|
|
|
|
|
|
// token 存储的名称
|
|
|
-export const TOKEN_STORE_NAME = 'access_token';
|
|
|
+export const TOKEN_STORE_NAME = window.__POWERED_BY_QIANKUN__
|
|
|
+ ? 'access_token'
|
|
|
+ : `${SYSTEM_NAME}-access_token`;
|
|
|
|
|
|
// 主题配置存储的名称
|
|
|
-export const THEME_STORE_NAME = 'theme';
|
|
|
+export const THEME_STORE_NAME = window.__POWERED_BY_QIANKUN__
|
|
|
+ ? 'theme'
|
|
|
+ : `${SYSTEM_NAME}-theme`;
|
|
|
|
|
|
// i18n 缓存的名称
|
|
|
export const I18N_CACHE_NAME = 'i18n-lang';
|