|
@@ -191,33 +191,7 @@ const router = new Router({
|
|
],
|
|
],
|
|
});
|
|
});
|
|
|
|
|
|
-function dispatchScss(path) {
|
|
|
|
- if (!path) {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (path.indexOf('/a/') > -1) {
|
|
|
|
- require('@/assets/css/main/main-a.scss');
|
|
|
|
- } else if (path.indexOf('/c/') > -1) {
|
|
|
|
- require('@/assets/css/main/main-c.scss');
|
|
|
|
- } else {
|
|
|
|
- require('@/assets/css/main/main-z.scss');
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
router.beforeEach((to, from, next) => {
|
|
- dispatchScss(to.fullPath);
|
|
|
|
- getAuth();
|
|
|
|
- getGuide();
|
|
|
|
- // getTenantCode();
|
|
|
|
- getSystemConfig();
|
|
|
|
- if (getSystemConfig()) {
|
|
|
|
- document.title = getSystemConfig().logoText; // describe: 更改title(刷新问题待优化) author: Wgy date:2019-12-04
|
|
|
|
- }
|
|
|
|
- //个人头像
|
|
|
|
- getUserIcon();
|
|
|
|
- shitiStatusControl(to);
|
|
|
|
- saveHistoryPaths(to, from, next);
|
|
|
|
next();
|
|
next();
|
|
});
|
|
});
|
|
|
|
|