【修改】试卷、试卷任务删除提示返回值

This commit is contained in:
huababa1
2025-07-07 20:00:06 +08:00
committed by 陆光LG
parent 2f3209a6c8
commit 6f4b46cee6
10 changed files with 77 additions and 35 deletions

View File

@@ -342,10 +342,6 @@ const openLook = (type: string, paperId?: number) => {
// 删除操作
const handleDelete = async (row?: any) => {
if (row?.counts > 0) {
ElMessage.warning('当前试卷使用次数大于0不允许删除');
return;
}
try {
await message.delConfirm();
await PaperApi.removePaper(row.paperId);