refactor: 登录成功提示
This commit is contained in:
@@ -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'),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user