소스 검색

Merge branch 'dev_1.2.4' of http://git.qmth.com.cn/union-question/union-question-web into dev_1.2.4

zhangjie 2 년 전
부모
커밋
52a3a146a9
1개의 변경된 파일12개의 추가작업 그리고 7개의 파일을 삭제
  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();
-          });
         });
       }
     },