Parcourir la source

修改跳转学生中心页面

zengyicheng il y a 2 ans
Parent
commit
494d52ee1d
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      src/components/courseDetail.vue

+ 3 - 3
src/components/courseDetail.vue

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