diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index 941f793..8df9696 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -2,7 +2,7 @@ import type { AuthPermissionInfo, Recordable, UserInfo } from '@vben/types'; import type { AuthApi } from '#/api'; -import { ref } from 'vue'; +import { h, ref } from 'vue'; import { useRouter } from 'vue-router'; import { LOGIN_PATH } from '@vben/constants'; @@ -82,8 +82,15 @@ export const useAuthStore = defineStore('auth', () => { if (userInfo?.nickname) { notification.success({ - description: `${$t('authentication.loginSuccessDesc')}:${userInfo?.nickname}`, - duration: 3, + description: h('div', null, [ + h( + 'p', + null, + `${$t('authentication.welcomeBack')},${userInfo.nickname}`, + ), + h('p', null, '申请license步骤:先创建客户→创建项目→再申请lic'), + ]), + duration: 10, message: $t('authentication.loginSuccess'), }); }