|
@@ -502,13 +502,9 @@ export default {
|
|
|
window.open(href);
|
|
|
},
|
|
|
async toDelete(row) {
|
|
|
- const confirm = await this.$confirm(
|
|
|
- `确定要删除题卡【${row.name}】吗?`,
|
|
|
- "提示",
|
|
|
- {
|
|
|
- type: "warning",
|
|
|
- }
|
|
|
- ).catch(() => {});
|
|
|
+ const confirm = await this.$confirm(`确定要删除题卡吗?`, "提示", {
|
|
|
+ type: "warning",
|
|
|
+ }).catch(() => {});
|
|
|
if (confirm !== "confirm") return;
|
|
|
|
|
|
await cardDeleteApi([row.id]);
|