mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-05-10 12:42:10 +08:00
fix(notification): 统一使用title属性替代message属性
refactor: 将notification的message属性替换为title属性以保持一致性 feat: 在登录成功时添加新的notification样式演示 docs: 添加antdv-next替换ant-design-vue的提示
This commit is contained in:
@@ -69,7 +69,17 @@ export const useAuthStore = defineStore('auth', () => {
|
||||
notification.success({
|
||||
description: `${$t('authentication.loginSuccessDesc')}:${userInfo?.realName}`,
|
||||
duration: 3,
|
||||
message: $t('authentication.loginSuccess'),
|
||||
title: $t('authentication.loginSuccess'),
|
||||
});
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 1000));
|
||||
Array.from({ length: 5 }).forEach((_, index) => {
|
||||
setTimeout(() => {
|
||||
notification.success({
|
||||
title: '新的notification样式',
|
||||
description: '这是一条新的通知消息',
|
||||
});
|
||||
}, index * 900);
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user