资源模块修改 #32

Merged
lyc merged 7 commits from lyc-dev into main 2024-07-18 09:32:37 +08:00
1 changed files with 9 additions and 2 deletions
Showing only changes of commit b14799d4ca - Show all commits

View File

@ -38,8 +38,15 @@ const openDialog = () => {
const getData = (data) => {
const { textBook, node } = data
let textbookId = textBook.curBookId
let levelSecondId = node.id
let levelFirstId = node.parentNode ? node.parentNode.id : ''
let levelSecondId = node.id
let levelFirstId
if(node.parentNode){
levelFirstId = node.parentNode.id
}
else{
levelFirstId = node.id
levelSecondId = ''
}
sourceStore.query.levelFirstId = levelFirstId
sourceStore.query.levelSecondId = levelSecondId
sourceStore.query.textbookId = textbookId