perf: 优化

This commit is contained in:
ah--desktop
2025-12-07 23:36:38 +08:00
parent 407c650973
commit a3b8797955
42 changed files with 160 additions and 701 deletions
@@ -5,7 +5,7 @@ import type { PageQueryDTO } from '#/types/common';
import { computed, ref, watch } from 'vue';
import { Button, Image, message, Space, Tag } from 'ant-design-vue';
import { Button, Image, message, Popconfirm, Space, Tag } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { getImagePageApi } from '#/api/media/image';
@@ -334,9 +334,12 @@ defineExpose({
<Space>
<Button size="small" @click="handleDownload(row)"> 下载 </Button>
<Button size="small" @click="handleEdit(row)"> 编辑 </Button>
<Button size="small" danger @click="handleDelete(row.id)">
删除
</Button>
<Popconfirm
title="确定要删除这张图片吗?"
@confirm="handleDelete(row.id)"
>
<Button size="small" danger> 删除 </Button>
</Popconfirm>
</Space>
</template>
</Grid>