소스 검색

修改课程管理和课程中心跳转

lsc 7 달 전
부모
커밋
0e4ac395e0
1개의 변경된 파일10개의 추가작업 그리고 9개의 파일을 삭제
  1. 10 9
      src/components/main/other.vue

+ 10 - 9
src/components/main/other.vue

@@ -58,15 +58,16 @@ const dialogVisible = ref(false)
 
 const openApplication = (type) => {
   console.log(type, InfoStore.user)
-  if (type == "study") {
-    if (InfoStore.user.type == 2) {
-      top.U.MD.D.I.openApplication('studentStudy')
-    } else {
-      top.U.MD.D.I.openApplication('study')
-    }
-  } else {
-    top.U.MD.D.I.openApplication(type)
-  }
+  // if (type == "study") {
+  //   if (InfoStore.user.type == 2) {
+  //     top.U.MD.D.I.openApplication('studentStudy')
+  //   } else {
+  //     top.U.MD.D.I.openApplication('study')
+  //   }
+  // } else {
+  //   top.U.MD.D.I.openApplication(type)
+  // }
+  window.open('https://cloud.cocorobo.cn//#/'+type)
 }
 const courseDown = e => {
   dialogVisible.value = true