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