chao 1 year ago
parent
commit
631dea62b5

+ 1 - 1
dist/assets/Details-RPHfBdRc.js → dist/assets/Details-1zv060rj.js

@@ -1 +1 @@
-import{u as m,r as i,o as p,a as l,b as a,c as b,d as t,w as s,F as f,H as h,e as n,t as k,f as v,g,h as r,i as y,C,j as x,P as B,k as N}from"./index-FrSLcP10.js";const V={class:"iframDiv"},P={__name:"Details",setup(D){const{query:u,params:o}=m();console.log(u,o);const e=i("");return p(()=>{e.value=o.title}),(w,F)=>{const c=l("el-breadcrumb-item"),_=l("el-breadcrumb"),d=l("el-page-header");return a(),b(f,null,[t(h),t(d,null,{breadcrumb:s(()=>[t(_,{separator:"/"},{default:s(()=>[t(c,{to:{path:"/"}},{default:s(()=>[n(" 首页 ")]),_:1}),t(c,null,{default:s(()=>[n(k(v(o).title),1)]),_:1})]),_:1})]),default:s(()=>[g("div",V,[e.value=="课程列表"?(a(),r(C,{key:0})):e.value=="资源中心"?(a(),r(x,{key:1})):e.value=="实践中心"?(a(),r(B,{key:2})):e.value=="其他课程资源"?(a(),r(N,{key:3})):y("",!0)])]),_:1})],64)}}};export{P as default};
+import{u as m,r as i,o as p,a as l,b as a,c as b,d as t,w as s,F as f,H as h,e as n,t as k,f as v,g,h as r,i as y,C,j as x,P as B,k as N}from"./index-2hlOU_93.js";const V={class:"iframDiv"},P={__name:"Details",setup(D){const{query:u,params:o}=m();console.log(u,o);const e=i("");return p(()=>{e.value=o.title}),(w,F)=>{const c=l("el-breadcrumb-item"),_=l("el-breadcrumb"),d=l("el-page-header");return a(),b(f,null,[t(h),t(d,null,{breadcrumb:s(()=>[t(_,{separator:"/"},{default:s(()=>[t(c,{to:{path:"/"}},{default:s(()=>[n(" 首页 ")]),_:1}),t(c,null,{default:s(()=>[n(k(v(o).title),1)]),_:1})]),_:1})]),default:s(()=>[g("div",V,[e.value=="课程列表"?(a(),r(C,{key:0})):e.value=="资源中心"?(a(),r(x,{key:1})):e.value=="实践中心"?(a(),r(B,{key:2})):e.value=="其他课程资源"?(a(),r(N,{key:3})):y("",!0)])]),_:1})],64)}}};export{P as default};

File diff suppressed because it is too large
+ 0 - 0
dist/assets/admin-cndFXWN_.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-2hlOU_93.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-9JTwdt6Z.css


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-FrSLcP10.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-V7aja6dt.css">
+    <script type="module" crossorigin src="./assets/index-2hlOU_93.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-9JTwdt6Z.css">
   </head>
   <body>
     <div id="app"></div>

+ 2 - 2
src/components/main/courseSelect.vue

@@ -254,11 +254,11 @@ const courseData = {
         title: "无所不在的人工智能",
         url: ba2
       }, {
-        id: "2875785e-eb49-11ee-b534-005056b86db5",
+        id: "2ac614fe-eb49-11ee-b534-005056b86db5",
         title: "机器翻译鸟(上)",
         url: ba3
       }, {
-        id: "2ac614fe-eb49-11ee-b534-005056b86db5",
+        id: "2875785e-eb49-11ee-b534-005056b86db5",
         title: "机器翻译鸟(下)",
         url: ba4
       },

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

@@ -27,32 +27,26 @@
   </el-row>
 </template>
 <script setup>
-import { ref,onMounted } from 'vue';
+import { ref, onMounted } from 'vue';
 import Img1 from '@/assets/icon/课程管理.png'
 import Img2 from '@/assets/icon/课程中心.png'
 import Img3 from '@/assets/icon/学生评价icon.png'
 import { userInfoStore } from '@/stores/counter'
 
 const InfoStore = userInfoStore()
-const Identity = ref(0)
-onMounted(() => {
-  if(InfoStore.user && InfoStore.user.type){
-    Identity.value = InfoStore.user.type
-  }
-})
 
 const openApplication = (type) => {
-  console.log(type,Identity)
-  if(type == "study"){
-    if(Identity.value == 1){
-      top.U.MD.D.I.openApplication('study')
-    }else{
+  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{
+  } else {
     top.U.MD.D.I.openApplication(type)
   }
-  
+
 }
 </script>
 <style lang="scss" scoped>
@@ -82,6 +76,7 @@ const openApplication = (type) => {
         left: 80px;
         top: 16px;
         cursor: pointer;
+
         span {
           color: rgba(0, 0, 0, 0.9);
           font-size: 14px;

Some files were not shown because too many files changed in this diff