Compare commits
No commits in common. "172441984834843f06e5ac031f80af6244cec61a" and "bf642ddc7996dd630bec45f7de08668e5bcf2ee7" have entirely different histories.
1724419848
...
bf642ddc79
File diff suppressed because one or more lines are too long
|
@ -253,11 +253,10 @@ const getAllSubject = async () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
bookList.value = dataList
|
bookList.value = dataList
|
||||||
const session = sessionStore.get('subject.curNode')
|
const { id, rootid } = sessionStore.get('subject.curNode')
|
||||||
console.log('session',session);
|
if(id && rootid){
|
||||||
let filePath = import.meta.env.VITE_APP_RES_FILE_PATH;
|
const idx = dataList.findIndex(item => item.id === id && item.rootid === rootid)
|
||||||
if(session.rootid){
|
let filePath = import.meta.env.VITE_APP_RES_FILE_PATH;
|
||||||
const idx = dataList.findIndex(item => item.id === session.rootid)
|
|
||||||
if(idx > -1){
|
if(idx > -1){
|
||||||
bookInfo.value = {...dataList[idx]}
|
bookInfo.value = {...dataList[idx]}
|
||||||
filePath += dataList[idx].fileurl.replace('.txt','.pdf')
|
filePath += dataList[idx].fileurl.replace('.txt','.pdf')
|
||||||
|
@ -266,10 +265,9 @@ const getAllSubject = async () => {
|
||||||
filePath += dataList[0].fileurl.replace('.txt','.pdf')
|
filePath += dataList[0].fileurl.replace('.txt','.pdf')
|
||||||
}
|
}
|
||||||
await loadPdfAnimation(filePath)
|
await loadPdfAnimation(filePath)
|
||||||
}else{
|
|
||||||
bookInfo.value = {...dataList[0]}
|
|
||||||
filePath += dataList[0].fileurl.replace('.txt','.pdf')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
const bookChange = async (item, idx) => {
|
const bookChange = async (item, idx) => {
|
||||||
booksel.value = idx
|
booksel.value = idx
|
||||||
|
|
Loading…
Reference in New Issue