资源修改

This commit is contained in:
lyc 2024-07-18 09:22:01 +08:00
parent c03e8d4d2c
commit b14799d4ca
1 changed files with 9 additions and 2 deletions

View File

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