mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 15:21:53 +08:00
【修复】管理后台 UI 超时登录后,返回登陆界面时,由于未登陆加载不到信息,导致报错的问题
This commit is contained in:
parent
ae9186f4b4
commit
9f65c46c82
@ -192,7 +192,8 @@ yudao:
|
||||
token-header: Authorization
|
||||
token-secret: abcdefghijklmnopqrstuvwxyz
|
||||
token-timeout: 1d
|
||||
session-timeout: 30m
|
||||
# session-timeout: 30m
|
||||
session-timeout: 10s
|
||||
mock-enable: true
|
||||
mock-secret: test
|
||||
file:
|
||||
|
@ -91,6 +91,20 @@ const user = {
|
||||
GetInfo({ commit, state }) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getInfo(state.token).then(res => {
|
||||
// 没有 data 数据,赋予个默认值
|
||||
if (!res) {
|
||||
res = {
|
||||
data: {
|
||||
roles: [],
|
||||
user: {
|
||||
id: '',
|
||||
avatar: '',
|
||||
userName: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
res = res.data; // 读取 data 数据
|
||||
const user = res.user
|
||||
const avatar = user.avatar === "" ? require("@/assets/images/profile.jpg") : user.avatar;
|
||||
|
3
更新日志.md
3
更新日志.md
@ -12,8 +12,6 @@
|
||||
* 升级 mybatis plus 最新版本,优化多租户的实现
|
||||
* RedisKeyDefine 的发现机制
|
||||
|
||||
*【修复】管理后台 UI 超时登录后,返回登陆界面时,由于未登陆加载不到字典数据,导致报错的问题
|
||||
|
||||
|
||||
## [v1.4.0] 计划,预计 2022.02.28 发布
|
||||
|
||||
@ -38,6 +36,7 @@ TODO 待统计
|
||||
* 【修复】用户无权限访问 指定 API 时,未返回 FORBIDDEN 结果码
|
||||
* 【修复】定时任务刷新本地缓存时,无租户上线文,导致查询报错
|
||||
* 【修复】配置中心只加载了删除的配置
|
||||
* 【修复】管理后台 UI 超时登录后,返回登陆界面时,由于未登陆加载不到信息,导致报错的问题
|
||||
|
||||
### 🔨 Dependency Upgrades
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user