NEZ-926 fix: 修改 开启2FA 无法登录的问题

This commit is contained in:
zhangyu
2021-08-23 14:11:58 +08:00
parent edb81b5a98
commit 366e891081
3 changed files with 11 additions and 11 deletions

View File

@@ -167,15 +167,6 @@ 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