From 1dde9c3bc3cadb5e574ad037a95f769b6bc87871 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期三, 15 五月 2024 20:09:16 +0800
Subject: [PATCH] 目录

---
 src/assets/js/config.ts |    4 ++--
 src/views/home.vue      |   12 +++++++++---
 2 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/assets/js/config.ts b/src/assets/js/config.ts
index 314ab80..7a89807 100644
--- a/src/assets/js/config.ts
+++ b/src/assets/js/config.ts
@@ -1,7 +1,7 @@
 // 娴嬭瘯
 export const ctx = "http://182.92.203.7:3001";
 export const downloaderFileCtx = "http://182.92.203.7:3007/DigitalTextbookReader";
-export const ctxUrl = "http://182.92.203.7:3007/books/book/1"; //鏈嶅姟鍣ㄥ湴鍧�
-export const resourceUrl = "http://182.92.203.7:3007/books/resource/1"; //璧勬簮鍦板潃
+export const ctxUrl = "http://182.92.203.7:3007/books/book"; //鏈嶅姟鍣ㄥ湴鍧�
+export const resourceUrl = "http://182.92.203.7:3007/books/resource"; //璧勬簮鍦板潃
 export const requestCtx = "https://jsek.bnuic.com"; //jsek
 
diff --git a/src/views/home.vue b/src/views/home.vue
index 2ad5d0a..56b9623 100644
--- a/src/views/home.vue
+++ b/src/views/home.vue
@@ -1023,11 +1023,12 @@
 const catalogueData = ref([])
 const getCatalogueData = () => {
   axios
-    .get(ctxUrl + '/catalog.json')
+    .get(resourceUrl + '/1/information.json?t=123')
     .then(function (response) {
+      console.log(response.data);
       var json = response.data
       // 澶勭悊鑾峰彇鍒扮殑json鏁版嵁
-      catalogueData.value = json
+      catalogueData.value = json.data
     })
     .catch(function (error) {
       console.log(error)
@@ -1079,7 +1080,7 @@
 const testWord = ref('') //word閾炬帴
 const getResourceData = () => {
   axios
-    .get(ctxUrl + '/resource.json')
+    .get(resourceUrl + '/1/resource.json')
     .then(function (response) {
       var json = response.data
       // 澶勭悊鑾峰彇鍒扮殑json鏁版嵁
@@ -2169,6 +2170,11 @@
   deleteTxt: ''
 })
 
+// 鍒掔嚎銆佺瑪璁般�侀珮浜偣鍑诲洖璋�
+window.signClick = (type, id)=>{
+  console.log("signClick鐐瑰嚮浜嬩欢鍥炶皟鐨勫疄渚�", type, id);
+}
+
 window.notesVisbleShow = function (txt) {
   addNoteVisble.value = true
   let notes = dialogToolData.notesList.find((item) => item.selectText == txt)

--
Gitblit v1.9.1