Browse Source

修改跳转学生中心页面

zengyicheng 2 năm trước cách đây
mục cha
commit
494d52ee1d
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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 +