mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-13 04:50:54 +08:00
fix(notification): 统一使用title属性替代message属性
refactor: 将notification的message属性替换为title属性以保持一致性 feat: 在登录成功时添加新的notification样式演示 docs: 添加antdv-next替换ant-design-vue的提示
This commit is contained in:
@@ -5,6 +5,7 @@ import { computed, ref, watch } from 'vue';
|
||||
import { SvgMessageUrl } from '@vben/icons';
|
||||
import { $t } from '@vben/locales';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
import { buildUUID } from '@vben/utils';
|
||||
|
||||
import { Modal, notification } from 'antdv-next';
|
||||
import dayjs from 'dayjs';
|
||||
@@ -55,7 +56,7 @@ export const useNotifyStore = defineStore(
|
||||
notification.success({
|
||||
description: message,
|
||||
duration: 3,
|
||||
message: $t('component.notice.received'),
|
||||
title: $t('component.notice.received'),
|
||||
});
|
||||
|
||||
notificationList.value.unshift({
|
||||
@@ -66,6 +67,7 @@ export const useNotifyStore = defineStore(
|
||||
message,
|
||||
title: $t('component.notice.title'),
|
||||
userId: userId.value,
|
||||
id: buildUUID(),
|
||||
});
|
||||
|
||||
// 需要手动置空 vue3在值相同时不会触发watch
|
||||
|
||||
Reference in New Issue
Block a user