将按钮的缓存从登录逻辑挪到登录之后的界面
This commit is contained in:
@@ -45,9 +45,9 @@
|
||||
import UserMenu from '../tools/UserMenu'
|
||||
import SMenu from '../menu/'
|
||||
import Logo from '../tools/Logo'
|
||||
import { getCurrentSystemConfig } from '@/api/api'
|
||||
|
||||
import { getCurrentSystemConfig, getUserBtnByCurrentUser } from '@/api/api'
|
||||
import { mixin } from '@/utils/mixin.js'
|
||||
import Vue from 'vue'
|
||||
|
||||
export default {
|
||||
name: 'GlobalHeader',
|
||||
@@ -166,6 +166,11 @@
|
||||
this.companyName = res.data.companyName
|
||||
}
|
||||
})
|
||||
getUserBtnByCurrentUser().then((res) => {
|
||||
if(res.code === 200 && res.data){
|
||||
Vue.ls.set('winBtnStrList', res.data.userBtn, 7 * 24 * 60 * 60 * 1000)
|
||||
}
|
||||
})
|
||||
},
|
||||
//update-begin--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user