mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-14 04:53:14 +08:00
refactor(antdv-next): 将message组件调用统一改为window.message
将项目中直接导入的antdv-next的message组件调用改为通过window.message调用,提升代码一致性 移除不再需要的message组件导入 新增api-switch组件用于统一处理状态切换逻辑
This commit is contained in:
@@ -5,15 +5,7 @@ import { nextTick, onMounted } from 'vue';
|
||||
|
||||
import { JsonPreview } from '@vben/common-ui';
|
||||
|
||||
import {
|
||||
Button,
|
||||
Input,
|
||||
InputNumber,
|
||||
message,
|
||||
Modal,
|
||||
Select,
|
||||
Space,
|
||||
} from 'antdv-next';
|
||||
import { Button, Input, InputNumber, Modal, Select, Space } from 'antdv-next';
|
||||
|
||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||
|
||||
@@ -246,9 +238,9 @@ async function handleValidate() {
|
||||
const result = await tableApi.grid.validate(true);
|
||||
console.log(result);
|
||||
if (result) {
|
||||
message.error('校验失败');
|
||||
window.message.error('校验失败');
|
||||
} else {
|
||||
message.success('校验成功');
|
||||
window.message.success('校验成功');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user