chao 1 yıl önce
ebeveyn
işleme
b2d17fb76f

+ 1 - 1
dist/assets/Details-UyFZk0SW.js → dist/assets/Details-tGe14O63.js

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

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/admin-OL-2Os0R.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-_bVZ_q6s.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/assets/index-dq8-634V.css


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-jQYR43OS.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-oSwhjcpC.css">
+    <script type="module" crossorigin src="./assets/index-_bVZ_q6s.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-dq8-634V.css">
   </head>
   <body>
     <div id="app"></div>

+ 3 - 0
src/components/admin/adminLeft.vue

@@ -30,6 +30,9 @@ import ClassImgSelect from '../../assets/img/banjiSelect.png'
 import TeacherImgSelect from '../../assets/img/jiaoshiSelect.png'
 
 const selectValue = ref(0)
+onMounted(() => {
+    getSelectionValue(0)
+})
 const getSelectionValue = val => {
     selectValue.value = val
     // U.MD.D.I.openApplication('studentStudy') 学习中心

+ 4 - 2
src/views/main.vue

@@ -20,16 +20,18 @@ import Practice from '@/components/main/Practice.vue';
 import other from '@/components/main/other.vue';
 import Edu from '@/components/main/edu.vue';
 import Header from './header.vue'
-import { userInfoStore } from '../stores/counter'
+import { userInfoStore,userCurrentRole } from '../stores/counter'
 
 const user = userInfoStore()
+const CurrentRole = userCurrentRole()
 const isupdateCourse = ref(false)
 const isLogin = ref(false)
 
 watchEffect(() => {
   if (JSON.stringify(user.user) != "{}") {
     isLogin.value = true
-    if (user.user.currentRole == "areaAdministrator" || user.user.currentRole == "userAdministrator" || user.user.currentRole == "securityAuditor" || user.user.currentRole == "schoolAdministrator" || user.user.currentRole == "schoolSecurityAuditor" || user.user.currentRole == "teacher" || user.user.currentRole == "visitor") {
+    if (CurrentRole.currentRole == "areaAdministrator" || CurrentRole.currentRole == "userAdministrator" || CurrentRole.currentRole == "securityAuditor" || CurrentRole.currentRole == "schoolAdministrator" || CurrentRole.currentRole == "schoolSecurityAuditor" || CurrentRole.currentRole == "teacher" || user.user.identity != 1) {
+      console.log(CurrentRole,user.user)
       isupdateCourse.value = true
     }
   }

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor