|
@@ -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;
|