【修改】试卷、试卷任务删除提示返回值
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user