fix(sj_1.1.0-beta3): 修复页面刷新后水印丢失问题
This commit is contained in:
parent
cce09016b3
commit
f6ee02e79b
2
.env
2
.env
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user