diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 3d1ee27..b09c211 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -38,7 +38,7 @@ const user = { } }, GET_DEPLIST: async ({ commit }) => { - let data = getDepList({type: 1}) + let data = await getDepList({type: 1}) commit('SET_DEPLIST', data.code === 200 ? data.data : []) return data } diff --git a/src/utils/permission.js b/src/utils/permission.js index f1a853f..6133d4f 100644 --- a/src/utils/permission.js +++ b/src/utils/permission.js @@ -57,5 +57,7 @@ router.beforeEach(async (to, from, next) => { }) router.afterEach(async () => { + console.log('afterEach: ') + await store.dispatch('GET_DEPLIST') }) diff --git a/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue b/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue index 85e7146..7d16799 100644 --- a/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue +++ b/src/views/kpi/workbench/assessmentGroup/edit/components/process.vue @@ -136,8 +136,6 @@ export default { watch: { info: { handler (n, o) { - console.log('n: ', n) - console.log('this.processLsit: ', this.processLsit) this.processLsit.length > 0 && this.processLsit.map(j => { for (let i in n) { if (n[i] && j.id === n[i].id) j.label = n[i].label