Explorar el Código

修改跳转学生中心页面

zengyicheng hace 2 años
padre
commit
494d52ee1d
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/components/courseDetail.vue

+ 3 - 3
src/components/courseDetail.vue

@@ -218,9 +218,9 @@ export default {
         .then((res) => {
         .then((res) => {
           console.log(res.data);
           console.log(res.data);
           this.updateVc();
           this.updateVc();
-          if (this.tType == 1) {
+          if (this.tType == 1 || this.tType == 2) {
             this.goTo(
             this.goTo(
-              "/study?type=" +
+              "/studyStudent?type=" +
                 i +
                 i +
                 "&courseId=" +
                 "&courseId=" +
                 this.id +
                 this.id +
@@ -237,7 +237,7 @@ export default {
             );
             );
           } else {
           } else {
             this.goTo(
             this.goTo(
-              "/studyStudent?type=" +
+              "/study?type=" +
                 i +
                 i +
                 "&courseId=" +
                 "&courseId=" +
                 this.id +
                 this.id +