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

---
 src/views/home.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

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