|
@@ -403,20 +403,20 @@ export default {
|
|
|
'isAgency': false,
|
|
|
'isSystemAdministrator': false
|
|
|
})
|
|
|
- console.log('本地没有用户信息,开始加载用户信息')
|
|
|
- getCurrentUser().then((res) => {
|
|
|
- console.log(res)
|
|
|
- storageSave('user', res)
|
|
|
- this.user = res
|
|
|
- this.rolesPermissions = getRolesPermissions(res.roleList)
|
|
|
- storageSave('rolesPermissions', getRolesPermissions(res.roleList))
|
|
|
- console.log('用户信息加载成功')
|
|
|
- this.isLogin = true
|
|
|
- this.fullScreenLoading = false
|
|
|
- }).catch((error) => {
|
|
|
- console.log('用户信息加载失败')
|
|
|
- this.fullScreenLoading = false
|
|
|
- })
|
|
|
+ // console.log('本地没有用户信息,开始加载用户信息')
|
|
|
+ // getCurrentUser().then((res) => {
|
|
|
+ // console.log(res)
|
|
|
+ // storageSave('user', res)
|
|
|
+ // this.user = res
|
|
|
+ // this.rolesPermissions = getRolesPermissions(res.roleList)
|
|
|
+ // storageSave('rolesPermissions', getRolesPermissions(res.roleList))
|
|
|
+ // console.log('用户信息加载成功')
|
|
|
+ // this.isLogin = true
|
|
|
+ // this.fullScreenLoading = false
|
|
|
+ // }).catch((error) => {
|
|
|
+ // console.log('用户信息加载失败')
|
|
|
+ // this.fullScreenLoading = false
|
|
|
+ // })
|
|
|
} else {
|
|
|
this.user = storageGet('user')
|
|
|
this.fullScreenLoading = false
|
|
@@ -618,6 +618,7 @@ export default {
|
|
|
// if (storageGet('user' != null)){
|
|
|
// this.isLogin = true
|
|
|
// }
|
|
|
+ console.log('header')
|
|
|
console.log(this.isLogin)
|
|
|
}
|
|
|
}
|