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

fix: 为多个课程添加页面新增isCocoLearn参数跳转逻辑

在五个不同的课程添加页面的goTo方法中,新增当路由查询参数isCocoLearn等于2时,调用parent.setCourseUrl并直接返回,不再执行原路由跳转逻辑
lsc 9 часов назад
Родитель
Сommit
f73beab98d

+ 4 - 0
src/components/pages/aiAddCourse/addCourse.vue

@@ -9139,6 +9139,10 @@ export default {
       this.noneBtnImg = _tmp.length >= 1;
     },
     goTo(path) {
+      if(this.$route.query.isCocoLearn == 2){
+        parent.setCourseUrl();
+        return
+      }
       this.$router.push(path);
     },
     guid() {

+ 4 - 0
src/components/pages/aiEasy/addCourse.vue

@@ -8471,6 +8471,10 @@ export default {
       this.noneBtnImg = _tmp.length >= 1;
     },
     goTo(path) {
+      if(this.$route.query.isCocoLearn == 2){
+        parent.setCourseUrl();
+        return
+      }
       this.$router.push(path);
     },
     guid() {

+ 4 - 0
src/components/pages/aiEasy2/addCourse.vue

@@ -5434,6 +5434,10 @@ export default {
       this.noneBtnImg = _tmp.length >= 1;
     },
     goTo(path) {
+      if(this.$route.query.isCocoLearn == 2){
+        parent.setCourseUrl();
+        return
+      }
       this.$router.push(path);
     },
     guid() {

+ 4 - 0
src/components/pages/easy/addCourse.vue

@@ -9231,6 +9231,10 @@ export default {
       this.noneBtnImg = _tmp.length >= 1;
     },
     goTo(path) {
+      if(this.$route.query.isCocoLearn == 2){
+        parent.setCourseUrl();
+        return
+      }
       this.$router.push(path);
     },
     guid() {

+ 4 - 0
src/components/pages/newCourse/addCourse.vue

@@ -8402,6 +8402,10 @@ export default {
       this.noneBtnImg = _tmp.length >= 1;
     },
     goTo(path) {
+      if(this.$route.query.isCocoLearn == 2){
+        parent.setCourseUrl();
+        return
+      }
       this.$router.push(path);
     },
     guid() {

+ 4 - 0
src/components/pages/pptEasy/addCourse3.vue

@@ -1644,6 +1644,10 @@ export default {
       this.loadPPTToolList();
     },
     goTo(path) {
+      if(this.$route.query.isCocoLearn == 2){
+        parent.setCourseUrl();
+        return
+      }
       this.$router.push(path);
     },
     save(type = 1) {