lrf402788946 5 年 前
コミット
fa26ce15ee
2 ファイル変更3 行追加2 行削除
  1. 1 1
      config/menu-config.js
  2. 2 1
      store/setting.js

+ 1 - 1
config/menu-config.js

@@ -108,7 +108,7 @@ export const center = [
         module: 'center',
       },
       {
-        path: '/newPlan/classes/index',
+        path: '/newPlan/school',
         name: '培训计划详表',
         module: 'center',
       },

+ 2 - 1
store/setting.js

@@ -24,8 +24,9 @@ const actions = {
       }
     }
   },
-  async checkCache({ commit }) {
+  async checkCache({ rootState, commit, dispatch }) {
     let res = commit('setDefOpt', null, { root: true });
+    if (!rootState.defaultOption) dispatch('fetch');
     console.log(res);
   },
   async update({ commit }, { id, ...data }) {