chao 1 年之前
父節點
當前提交
872b7f23a5

+ 1 - 1
dist/assets/Details-SVgPNESd.js → dist/assets/Details-Iz18YCaM.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-K-SnhxXq.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-K_KhNzW8.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};

文件差異過大導致無法顯示
+ 0 - 0
dist/assets/admin-TbvgvehE.js


文件差異過大導致無法顯示
+ 0 - 0
dist/assets/index-K_KhNzW8.js


文件差異過大導致無法顯示
+ 0 - 0
dist/assets/index-abyd_Sj7.css


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-K-SnhxXq.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-DjBSdVK7.css">
+    <script type="module" crossorigin src="./assets/index-K_KhNzW8.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-abyd_Sj7.css">
   </head>
   <body>
     <div id="app"></div>

+ 11 - 3
src/components/header/headerRight.vue

@@ -11,7 +11,7 @@
             </div>
             <div>
                 <img src="" alt="">
-                <span style="cursor: pointer;" @click="userInfoShow = true">{{ userName }}</span>
+                <span style="cursor: pointer;" class="dropdownMenu" @click="userInfoShow = true">{{ userName }}</span>
                 <ul v-if="userInfoShow" class="user_info">
                     <li @click="userInfoOpen()">个人资料</li>
                     <li @click="logout()">退出</li>
@@ -37,8 +37,16 @@ const userName = ref('username')
 const CurrentRole = userCurrentRole()
 const userInfoShow = ref(false)
 
+onMounted(() => {
+    document.addEventListener('click', (e) => {
+        if (e.target.className !== 'dropdownMenu') {
+            userInfoShow.value = false
+        }
+    })
+})
+
 const linkLogin = () => {
-    top.location.href = `http://szedutest.changyan.cn/thirdauth/oauth2/authorize?service=initService&scope=all&response_type=code&app_id=94c720f0634b4bad890dc9223de01166&redirect_uri=https://cloud.cocorobo.cn/testapi`
+    top.location.href = `http://szedutest.changyan.cn/thirdauth/oauth2/authorize?service=initService&scope=all&response_type=code&app_id=94c720f0634b4bad890dc9223de01166&redirect_uri=https://cloud.cocorobo.cn/ai.html`
 }
 
 const adminClick = () => {
@@ -64,7 +72,7 @@ const userInfoOpen = () => {
 }
 const logout = () => {
     axios.post(`https://beta.api.cocorobo.cn/api/logout`).then(res => {
-        console.log("logout",res)
+        console.log("logout", res)
         if (res.data == "logout") {
             top.location.href = "https://sz.edu.cn/thirdauth/oauth2/sso_logout?app_id=f03970962b254aa29115fefd42a8eeb7&redirect_uri=https://cloud.cocorobo.cn/api"
         }

部分文件因文件數量過多而無法顯示