Просмотр исходного кода

fix(pptEasy/addCourse3): 仅在type不为3时关闭上传加载状态

在新增和编辑课件的接口回调中,添加type不等于3的判断条件,避免在type为3时错误地关闭上传加载状态
lsc 4 часов назад
Родитель
Сommit
e636dadb42
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      src/components/pages/pptEasy/addCourse3.vue

+ 6 - 2
src/components/pages/pptEasy/addCourse3.vue

@@ -2052,7 +2052,9 @@ export default {
       this.ajax
         .post(this.$store.state.api + "insert_teacher_work_pptCourse", params)
         .then(res => {
-          this.uploadWorkLoading = false;
+          if(type != 3){
+            this.uploadWorkLoading = false;
+          }
           console.log(this.steps);
           // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
           this.showToast(this.lang.ssSaveSuccess);
@@ -2169,7 +2171,9 @@ export default {
         .post(this.$store.state.api + "updateWorkNew2", params)
         .then(res => {
           // if (this.steps != 1 && this.steps != 2 && this.steps != 3) {
-          this.uploadWorkLoading = false;
+          if(type != 3){
+            this.uploadWorkLoading = false;
+          }
           // if (this.cidType == 1) {
           //   this.$message({
           //     message: this.lang.ssSaveSuccess,