签入版本

This commit is contained in:
2026-10-10 12:24:24 +08:00
parent 49b04a1ec4
commit 3423dea03f
11 changed files with 2372 additions and 43 deletions
@@ -104,7 +104,7 @@ export function exampleBatchDelete(data: any) {
```vue
<script setup lang="ts">
import { getExamplePage, exampleDelete } from '@/api/tool/example';
import { ElMessage, ElMessageBox } from 'element-plus';
import { Modal, message } from 'ant-design-vue';
const tableData = ref([]);
@@ -116,10 +116,15 @@ const fetchData = async () => {
// 删除
const handleDelete = async (id) => {
await ElMessageBox.confirm('确认删除?', '提示', { type: 'warning' });
await exampleDelete(id);
ElMessage.success('删除成功');
fetchData();
Modal.confirm({
title: '提示',
content: '确认删除?',
onOk: async () => {
await exampleDelete(id);
message.success('删除成功');
fetchData();
},
});
};
</script>
```