From e2a5b65c75ec01d4e5500437f90326bb5afb8319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E6=88=90=E5=BC=BA?= Date: Fri, 20 Nov 2020 15:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 2 +- src/utils/permission.js | 2 ++ .../kpi/workbench/assessmentGroup/edit/components/process.vue | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) 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