refactor: 登录成功提示

This commit is contained in:
caiyuchao
2025-08-25 11:07:51 +08:00
parent 6e0409bd42
commit 85eaf70311

View File

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