chao 1 年之前
父节点
当前提交
fd396139eb

+ 1 - 1
dist/assets/Details-aEBqUxWd.js → dist/assets/Details-Sk3gHuqV.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-T2dIxRju.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-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};

文件差异内容过多而无法显示
+ 0 - 0
dist/assets/admin-C5cFGwMD.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-ZEOzES2h.js


文件差异内容过多而无法显示
+ 0 - 0
dist/assets/index-cIqiopCJ.css


+ 2 - 2
dist/index.html

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

+ 2 - 2
src/App.vue

@@ -38,11 +38,11 @@ onMounted(() => {
           }
         })
       } else {
-        // linkLogin()
+        linkLogin()
       }
     })
   } else {
-    // linkLogin()
+    linkLogin()
   }
 })
 

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

@@ -3,7 +3,7 @@
         <div>
             <el-button @click="goBack()">返回人工智能专栏</el-button>
         </div>
-        <div v-if="!isLogin" class="loginAdmin">
+        <div v-if="isLogin" class="loginAdmin">
             <div v-if="admin">
                 <img src="" alt="">
                 <!-- <span>管理后台</span> -->
@@ -27,14 +27,14 @@
 
 <script setup>
 import { ref, onMounted, watchEffect } from "vue"
-import { userCurrentRole,userInfoStore } from '../../stores/counter'
+import { userCurrentRole, userInfoStore } from '../../stores/counter'
 
 const user = userInfoStore()
 const isLogin = ref(false)
 const admin = ref(false)
 const userName = ref('')
 const CurrentRole = userCurrentRole()
-const userInfoShow = ref(true)
+const userInfoShow = ref(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`
@@ -45,21 +45,21 @@ const adminClick = () => {
     // U.MD.D.I.openInApplication('dataBoardSZCity') //市级数据看板
     // U.MD.D.I.openInApplication('dataBoardSZArea') //区级数据看板
     console.log(CurrentRole.currentRole)
-    if(CurrentRole.currentRole === 'userAdministrator'){
+    if (CurrentRole.currentRole === 'userAdministrator') {
         top.U.MD.D.I.openInApplication('dataBoardSZCity')
-    }else if(CurrentRole.currentRole === 'securityAuditor'){
+    } else if (CurrentRole.currentRole === 'securityAuditor') {
         top.U.MD.D.I.openInApplication('dataBoardSZArea')
-    }else{
-        top.U.MD.D.I.openApplication('Grade') 
+    } else {
+        top.U.MD.D.I.openApplication('Grade')
     }
 }
 
-const goBack=()=>{
+const goBack = () => {
     top.location.href = "https://zy.szedu.cn/ai/"
 }
 
 const userInfoOpen = () => {
-    top.U.MD.D.I.openApplication('my') 
+    top.U.MD.D.I.openApplication('my')
 }
 
 watchEffect(() => {
@@ -102,12 +102,16 @@ watchEffect(() => {
             color: #fff;
         }
     }
+
     .user_info {
         width: 100%;
         position: relative;
         background: #fff;
-        padding: 0 15px;
+
+        li {
+            padding: 0 15px;
+            cursor: pointer;
+        }
     }
 }
-
 </style>

部分文件因为文件数量过多而无法显示