Преглед на файлове

修改跳转学生中心页面

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 +