NEZ-924 fix: header调整

This commit is contained in:
@changcode
2021-08-20 17:09:39 +08:00
parent 1bc1c91277
commit e017d7f014
8 changed files with 96 additions and 47 deletions

View File

@@ -167,6 +167,15 @@ export default {
// 登录成功记录用户名、token和lang
this.authToken = res.data.authToken
sessionStorage.setItem('nz-token', res.data.authToken)
this.$get('/sys/user/profile').then(response => {
if (response.code === 200) {
const userList = response.user
console.log(userList)
// 保存当前用户的 userId
localStorage.setItem('nz-user-id', userList.id)
localStorage.setItem('nz-user-name', userList.name)
}
})
if (res.data.authFlag === 1) {
if (res.data.authBind === 0) {
this.verifyShow = true