xiatian 2 年之前
父節點
當前提交
a5a54d89d8
共有 1 個文件被更改,包括 11 次插入7 次删除
  1. 11 7
      src/modules/questions/views/Course.vue

+ 11 - 7
src/modules/questions/views/Course.vue

@@ -612,14 +612,18 @@ export default {
         cancelButtonText: "取消",
         type: "warning",
       }).then(() => {
-        var url = QUESTION_API + "/course/" + row.id;
-        this.$httpWithMsg.delete(url).then(() => {
-          this.$notify({
-            type: "success",
-            message: "删除成功!",
+        var url = QUESTION_API + "/course/delete";
+        let temCourseIds = [];
+        temCourseIds.push(row.id);
+        this.$httpWithMsg
+          .post(url, new URLSearchParams({ courseIds: temCourseIds }))
+          .then(() => {
+            this.$notify({
+              type: "success",
+              message: "删除成功!",
+            });
+            this.searchForm();
           });
-          this.searchForm();
-        });
       });
     },
     //删除多条数据