From 1335d47ae855d448ce40bc1cd80ac6748cd92a86 Mon Sep 17 00:00:00 2001 From: Soybean Date: Tue, 16 Jan 2024 01:52:32 +0800 Subject: [PATCH] fix(projects): add duration of login success notification --- src/store/modules/auth/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/store/modules/auth/index.ts b/src/store/modules/auth/index.ts index 3f2c686c..96508e3c 100644 --- a/src/store/modules/auth/index.ts +++ b/src/store/modules/auth/index.ts @@ -58,7 +58,8 @@ export const useAuthStore = defineStore(SetupStoreId.Auth, () => { if (routeStore.isInitAuthRoute) { window.$notification?.success({ title: $t('page.login.common.loginSuccess'), - content: $t('page.login.common.welcomeBack', { userName: userInfo.userName }) + content: $t('page.login.common.welcomeBack', { userName: userInfo.userName }), + duration: 4500 }); } }