@@ -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();
- });
}
},