Skip to content

Commit

Permalink
!72 ⚡  避免锁屏后前端token 过期,无法解锁的问题
Browse files Browse the repository at this point in the history
Merge pull request !72 from lbw/N/A
  • Loading branch information
lbw authored and gitee-org committed Sep 27, 2023
2 parents 89bb17c + 6428feb commit 74ee719
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/layout/lockScreen/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ const onLockScreenSubmit = async () => {
} catch (err: any) {
// 捕获异常并将错误提示信息赋值给mes变量
mes.value = err.msg;
if(err.msg == '用户凭证已过期'){
themeConfig.value.isLockScreen = false;
themeConfig.value.lockScreenTime = 30;
// 将最新的主题配置保存到本地存储中
setLocalThemeConfig();
}
}
};
Expand Down

0 comments on commit 74ee719

Please sign in to comment.