fix(sj_1.1.0-beta3): 修复页面刷新后水印丢失问题

This commit is contained in:
xlsea 2024-07-11 09:14:21 +08:00
parent cce09016b3
commit f6ee02e79b
2 changed files with 2 additions and 2 deletions

2
.env
View File

@ -2,7 +2,7 @@ VITE_APP_TITLE=Snail Job
VITE_APP_DESC=A flexible, reliable, and fast platform for distributed task retry and distributed task scheduling.
VITE_APP_VERSION=1.1.0-beta2
VITE_APP_VERSION=1.1.0-beta3
VITE_APP_DEFAULT_TOKEN=SJ_Wyz3dmsdbDOkDujOTSSoBjGQP1BMsVnj

View File

@ -83,7 +83,6 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
const pass = await loginByToken(loginToken);
if (pass) {
themeStore.setWatermarkText(`${userInfo.userName}@${appTitle}`);
await routeStore.initAuthRoute();
if (redirect) {
@ -142,6 +141,7 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => {
info!.roles = [roleTypeRecord[info.role]];
localStg.set('userInfo', info);
Object.assign(userInfo, info);
themeStore.setWatermarkText(`${userInfo.userName}@${appTitle}`);
return true;
}