Skip to content

Commit

Permalink
⚡  避免锁屏后前端token 过期,无法解锁的问题
Browse files Browse the repository at this point in the history
Signed-off-by: lbw <[email protected]>
  • Loading branch information
lbw authored and gitee-org committed Sep 27, 2023
1 parent 89bb17c commit 6428feb
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 6428feb

Please sign in to comment.