feat: message替换

This commit is contained in:
rd
2025-09-05 11:30:31 +08:00
parent 0461ac4e62
commit 57156792cc
58 changed files with 176 additions and 181 deletions

View File

@ -13,7 +13,7 @@
<script setup>
import { ref } from 'vue';
import { Button, Modal } from 'ant-design-vue';
import { Button, Modal, message } from 'ant-design-vue';
import { deleteRawMaterial, batchDeleteRawMaterials } from '@/api/all/generationWorkshop';
import icon1 from '@/assets/img/media-account/icon-warn-1.png';
@ -44,7 +44,7 @@ async function onDelete() {
const _params = isBatch.value ? { ids: fileId.value } : fileId.value;
const { code } = await _fn(_params);
if (code === 200) {
AMessage.success('删除成功');
message.success('删除成功');
isBatch.value ? emits('batchUpdate') : emits('update');
onClose();