瀏覽代碼

修改跳转学生中心页面

zengyicheng 2 年之前
父節點
當前提交
494d52ee1d
共有 1 個文件被更改,包括 3 次插入3 次删除
  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 +