Browse Source

no message

FengChaoYu 1 year ago
parent
commit
7006283cb7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main.js

+ 1 - 1
src/main.js

@@ -25,8 +25,8 @@ Vue.prototype.deleteRequest = deleteRequest;
 router.beforeEach(async (to, from, next) => {
   // document.title = "嘉讯茂移动办公平台"
   if(window.sessionStorage.getItem("tokenStr")) {
-    await initMenu(router, store);
     await initSite(store);
+    initMenu(router, store);
     console.log(store.state)
     if(!window.sessionStorage.getItem('user')) {
       //判断用户信息是否存在