Pārlūkot izejas kodu

update 页面修正

15724580513 5 gadi atpakaļ
vecāks
revīzija
5111378c74
2 mainītis faili ar 1 papildinājumiem un 26 dzēšanām
  1. 1 0
      src/App.vue
  2. 0 26
      src/router.js

+ 1 - 0
src/App.vue

@@ -22,6 +22,7 @@
     };
 </script>
 <style lang="scss">
+    @import "./assets/css/main/main-z.scss";
     #app {
         font-family: "Helvetica Neue",Helvetica,Arial,"微软雅黑",sans-serif;
         -webkit-font-smoothing: antialiased;

+ 0 - 26
src/router.js

@@ -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) => {
-    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();
 });