From e112f6891f1177c136533ff5abe48468e91af7eb 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 14:25:11 +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/App.vue | 3 --- src/utils/permission.js | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 9cf122b..152499f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -47,14 +47,11 @@ export default { } }, async mounted () { - const a = await this.GET_DEPLIST() - console.log('a: ', a) }, methods: { onCancel () { }, - ...mapActions(['GET_DEPLIST']), ...mapMutations(['SET_USER_INFO']), // 获取钉钉鉴权码 handleGetDingtalkCode () { diff --git a/src/utils/permission.js b/src/utils/permission.js index e1c92c1..c201c0a 100644 --- a/src/utils/permission.js +++ b/src/utils/permission.js @@ -45,6 +45,7 @@ router.beforeEach(async (to, from, next) => { if (res === 1) { console.log('res: ', res) let res1 = await store.dispatch('GET_USERINFO') + await store.dispatch('GET_DEPLIST') console.log('res1: ', res1) if (res1 === 1) next() } else {