litian
2024-05-15 2e70ec6f43a5b652ddcbc19d44b2bab471410766
src/views/home.vue
@@ -1032,11 +1032,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)
@@ -1088,7 +1089,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数据
@@ -2080,6 +2081,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)