chao 1 年之前
父節點
當前提交
04b2248d3d

+ 1 - 1
dist/assets/Details-Sk3gHuqV.js → dist/assets/Details-EkRSH4hv.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-ZEOzES2h.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-epsMaH4I.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-PtzDJ-f_.js


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


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


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
     <script>
       document.domain = "cocorobo.cn"
       document.domain = "cocorobo.cn"
     </script>
     </script>
-    <script type="module" crossorigin src="./assets/index-ZEOzES2h.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-cIqiopCJ.css">
+    <script type="module" crossorigin src="./assets/index-epsMaH4I.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-y1eSPCVX.css">
   </head>
   </head>
   <body>
   <body>
     <div id="app"></div>
     <div id="app"></div>

+ 23 - 5
src/components/header/headerRight.vue

@@ -3,7 +3,7 @@
         <div>
         <div>
             <el-button @click="goBack()">返回人工智能专栏</el-button>
             <el-button @click="goBack()">返回人工智能专栏</el-button>
         </div>
         </div>
-        <div v-if="isLogin" class="loginAdmin">
+        <div v-if="!isLogin" class="loginAdmin">
             <div v-if="admin">
             <div v-if="admin">
                 <img src="" alt="">
                 <img src="" alt="">
                 <!-- <span>管理后台</span> -->
                 <!-- <span>管理后台</span> -->
@@ -13,8 +13,8 @@
                 <img src="" alt="">
                 <img src="" alt="">
                 <span style="cursor: pointer;" @click="userInfoShow = true">{{ userName }}</span>
                 <span style="cursor: pointer;" @click="userInfoShow = true">{{ userName }}</span>
                 <ul v-if="userInfoShow" class="user_info">
                 <ul v-if="userInfoShow" class="user_info">
-                    <li>个人资料</li>
-                    <li>退出</li>
+                    <li @click="userInfoOpen()">个人资料</li>
+                    <li @click="logout()">退出</li>
                 </ul>
                 </ul>
             </div>
             </div>
         </div>
         </div>
@@ -26,13 +26,14 @@
 </template>
 </template>
 
 
 <script setup>
 <script setup>
+import axios from "axios"
 import { ref, onMounted, watchEffect } from "vue"
 import { ref, onMounted, watchEffect } from "vue"
 import { userCurrentRole, userInfoStore } from '../../stores/counter'
 import { userCurrentRole, userInfoStore } from '../../stores/counter'
 
 
 const user = userInfoStore()
 const user = userInfoStore()
 const isLogin = ref(false)
 const isLogin = ref(false)
 const admin = ref(false)
 const admin = ref(false)
-const userName = ref('')
+const userName = ref('username')
 const CurrentRole = userCurrentRole()
 const CurrentRole = userCurrentRole()
 const userInfoShow = ref(false)
 const userInfoShow = ref(false)
 
 
@@ -61,6 +62,15 @@ const goBack = () => {
 const userInfoOpen = () => {
 const userInfoOpen = () => {
     top.U.MD.D.I.openApplication('my')
     top.U.MD.D.I.openApplication('my')
 }
 }
+const logout = () => {
+    axios.post(`https://beta.api.cocorobo.cn/api/logout`).then(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="
+        }
+    })
+
+}
 
 
 watchEffect(() => {
 watchEffect(() => {
     // console.log(user, 2222222222)
     // console.log(user, 2222222222)
@@ -107,10 +117,18 @@ watchEffect(() => {
         width: 100%;
         width: 100%;
         position: relative;
         position: relative;
         background: #fff;
         background: #fff;
+        border: 1px solid #fff;
 
 
         li {
         li {
-            padding: 0 15px;
+            padding: 10px;
             cursor: pointer;
             cursor: pointer;
+            // height: 40px;
+            line-height: normal;
+        }
+
+        li:hover {
+            background: rgb(54, 129, 252);
+            color: #fff;
         }
         }
     }
     }
 }
 }

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