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;