chao 1 年之前
父節點
當前提交
944a449e22

+ 1 - 1
dist/assets/Details-Tl3DjIBz.js → dist/assets/Details-iA6af48Y.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-l7pZxD-X.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-4X4bePF6.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-O1IzJFzX.js


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


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


+ 2 - 2
dist/index.html

@@ -8,8 +8,8 @@
     <script>
       document.domain = "cocorobo.cn"
     </script>
-    <script type="module" crossorigin src="./assets/index-l7pZxD-X.js"></script>
-    <link rel="stylesheet" crossorigin href="./assets/index-wvVx_WEu.css">
+    <script type="module" crossorigin src="./assets/index-4X4bePF6.js"></script>
+    <link rel="stylesheet" crossorigin href="./assets/index-KajjdPGY.css">
   </head>
   <body>
     <div id="app"></div>

+ 7 - 3
src/components/main/courseSelect.vue

@@ -40,7 +40,7 @@
                 {{ item.title }}
                 <el-popover placement="bottom" :width="200" trigger="click" show-after="1000">
                   <template #reference>
-                    <img :src="DownloadImg" alt="" @click="getDate(item, item.id)">
+                    <img :src="DownloadImg" alt="" @click="getDate(item.id)">
                   </template>
                   <div>
                     <div>
@@ -405,9 +405,12 @@ const updateReduction = () => {
   }, [], { "type": "POST", "withCredentials": true });
 }
 
-const getDate = async (item, id) => {
+const getDate = async (id) => {
   // currentData
   let dataList = []
+  let m = currentData.value
+
+  console.log(m,'11111111111111111')
   await top.U.A.Request("https://pbl.cocorobo.cn/api/pbl/selectCourseDetailSz", [id], function (res) {
     console.log(res)
     if (res.value[0].length > 0 && res.value[0][0].chapters.length > 0) {
@@ -426,12 +429,13 @@ const getDate = async (item, id) => {
     }
   }, [], { "type": "POST", "withCredentials": true });
 
-  await currentData.xia.map(x => {
+  await m.xia.map(x => {
     if (x.id == id) {
       x.dataList = dataList
     }
     return x
   })
+  currentData.value = m
   console.log("currentData", currentData)
 }
 

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