将按钮的缓存从登录逻辑挪到登录之后的界面

This commit is contained in:
季圣华
2023-11-19 23:21:28 +08:00
parent c90603a039
commit 3955997974
3 changed files with 9 additions and 3 deletions

View File

@@ -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: 顶部导航栏过长时显示更多按钮-----
}