xiatian 2 lat temu
rodzic
commit
852ce4ec50
1 zmienionych plików z 12 dodań i 7 usunięć
  1. 12 7
      src/modules/questions/views/Course.vue

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

@@ -635,14 +635,19 @@ export default {
           cancelButtonText: "取消",
           type: "error",
         }).then(() => {
-          var url = QUESTION_API + "/course/" + this.courseIds;
-          this.$httpWithMsg.delete(url).then(() => {
-            this.$notify({
-              type: "success",
-              message: "删除成功!",
+          var url = QUESTION_API + "/course/delete";
+          this.$httpWithMsg
+            .post(
+              url,
+              new URLSearchParams({ courseIds: this.selectedCourseIds })
+            )
+            .then(() => {
+              this.$notify({
+                type: "success",
+                message: "删除成功!",
+              });
+              this.searchForm();
             });
-            this.searchForm();
-          });
         });
       }
     },