diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index 0ac5a3fc..98eff078 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -8,7 +8,6 @@ import { LOGIN_PATH } from '@vben/constants'; import { preferences } from '@vben/preferences'; import { resetAllStores, useAccessStore, useUserStore } from '@vben/stores'; -import { notification } from 'antdv-next'; import { defineStore } from 'pinia'; import { doLogout, getUserInfoApi, loginApi, seeConnectionClose } from '#/api'; @@ -66,7 +65,7 @@ export const useAuthStore = defineStore('auth', () => { } if (userInfo?.realName) { - notification.success({ + window.notification.success({ description: `${$t('authentication.loginSuccessDesc')}:${userInfo?.realName}`, duration: 3, title: $t('authentication.loginSuccess'), diff --git a/apps/web-antd/src/store/notify.ts b/apps/web-antd/src/store/notify.ts index 2a5460a5..ce770246 100644 --- a/apps/web-antd/src/store/notify.ts +++ b/apps/web-antd/src/store/notify.ts @@ -7,7 +7,6 @@ import { $t } from '@vben/locales'; import { useUserStore } from '@vben/stores'; import { buildUUID } from '@vben/utils'; -import { notification } from 'antdv-next'; import dayjs from 'dayjs'; import { defineStore } from 'pinia'; @@ -53,7 +52,7 @@ export const useNotifyStore = defineStore( if (!message) return; console.log(`接收到消息: ${message}`); - notification.success({ + window.notification.success({ description: message, duration: 3, title: $t('component.notice.received'),