From d95a2eeb9fc3fa7e790851cf719bad9b0c48d8f5 Mon Sep 17 00:00:00 2001 From: wuhongjian Date: Thu, 7 Jul 2022 20:37:34 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/public/static/config/location.js | 11 +---------- front/src/store/modules/user.js | 5 ++++- front/src/vab/plugins/permissions.js | 4 ++-- front/src/views/home/infrastructurePage.vue | 4 ---- 4 files changed, 7 insertions(+), 17 deletions(-) diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index 92fcaa3c..3886edbe 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -1,22 +1,13 @@ /* * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 -<<<<<<< HEAD * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-07 17:30:10 -======= - * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-07-07 17:41:25 ->>>>>>> 420a31531fdd60d9a8007e3328d071690c7688f1 + * @LastEditTime: 2022-07-07 18:53:18 * @Description: 数据资源参数配置 */ const newLocation = 'qingdao' // const newLocation = 'baotou' -<<<<<<< HEAD -// const newLocation = 'xihaian' -======= // const newLocation = 'xihaian' ->>>>>>> 420a31531fdd60d9a8007e3328d071690c7688f1 // 数据资源数据 const whoShow = {} diff --git a/front/src/store/modules/user.js b/front/src/store/modules/user.js index 9679476e..1be71031 100644 --- a/front/src/store/modules/user.js +++ b/front/src/store/modules/user.js @@ -125,7 +125,10 @@ const actions = { commit('setUsername', data.data.username) commit('setRole', data.data.roleIdList.length) commit('setUserId', data.data.id) - resolve() + setTimeout(()=>{ + resolve() + },500) + }) }) }, diff --git a/front/src/vab/plugins/permissions.js b/front/src/vab/plugins/permissions.js index ac6117bc..a8f46286 100644 --- a/front/src/vab/plugins/permissions.js +++ b/front/src/vab/plugins/permissions.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-04-01 17:23:11 * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-07-07 18:15:38 + * @LastEditTime: 2022-07-07 19:58:32 * @Description: 告诉大家这是什么 */ /** @@ -49,7 +49,7 @@ router.beforeEach(async (to, from, next) => { next() } else { store.dispatch('user/getUserInfo').then((res)=>{ - debugger + console.log('马到成功!') next() }) // if (recordRoute) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 2d3ef2e8..b88cabc5 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -11,11 +11,7 @@ >>>>>> 420a31531fdd60d9a8007e3328d071690c7688f1 :class=" clickList[index].content.indexOf(itemContent.labelName) != -1 || clickList[index].content.indexOf(itemContent) != -1