From f6ee02e79b228b0d035b0e62fd389cfcb57f1c85 Mon Sep 17 00:00:00 2001 From: xlsea Date: Thu, 11 Jul 2024 09:14:21 +0800 Subject: [PATCH] =?UTF-8?q?fix(sj=5F1.1.0-beta3):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0=E5=90=8E=E6=B0=B4=E5=8D=B0?= =?UTF-8?q?=E4=B8=A2=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/store/modules/auth/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env b/.env index a1d76a2..64239c8 100644 --- a/.env +++ b/.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 diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 337aab6..5e85fa4 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -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; }