mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-25 18:44:31 +08:00
refactor: 移除 Modal 组件直接导入,统一使用 window.modal 调用
将项目中直接导入的 antdv-next Modal 组件替换为通过 window.modal 调用,提升代码一致性 删除不再使用的 table-switch.vue 组件
This commit is contained in:
@@ -7,7 +7,7 @@ import { $t } from '@vben/locales';
|
||||
import { useUserStore } from '@vben/stores';
|
||||
import { buildUUID } from '@vben/utils';
|
||||
|
||||
import { Modal, notification } from 'antdv-next';
|
||||
import { notification } from 'antdv-next';
|
||||
import dayjs from 'dayjs';
|
||||
import { defineStore } from 'pinia';
|
||||
|
||||
@@ -93,7 +93,7 @@ export const useNotifyStore = defineStore(
|
||||
function setRead(item: NotificationItem) {
|
||||
!item.isRead && (item.isRead = true);
|
||||
// 显示信息
|
||||
Modal.info({
|
||||
window.modal.info({
|
||||
title: item.title,
|
||||
content: item.message,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user