| | |
| | | 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) |
| | |
| | | const testWord = ref('') //word链接 |
| | | const getResourceData = () => { |
| | | axios |
| | | .get(ctxUrl + '/resource.json') |
| | | .get(resourceUrl + '/1/resource.json') |
| | | .then(function (response) { |
| | | var json = response.data |
| | | // 处理获取到的json数据 |
| | |
| | | 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) |