xiatian пре 2 година
родитељ
комит
33e47a1b29
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/modules/questions/views/EditOtherQuestion.vue

+ 3 - 3
src/modules/questions/views/EditOtherQuestion.vue

@@ -348,15 +348,15 @@ export default {
           if (this.questionId) {
             this.fullscreenLoading = true;
             //修改逻辑
-            this.$http
+            this.$httpWithMsg
               .put(QUESTION_API + "/question", this.quesModel)
               .then(() => {
                 this.$notify({
                   message: "保存成功",
                   type: "success",
                 });
-                this.fullscreenLoading = false;
-              });
+              })
+              .finally(() => (this.fullscreenLoading = false));
           } else {
             //新增逻辑
             this.quesModel.courseNo = this.courseNo;