资源模块修改 #32
|
@ -39,7 +39,14 @@ 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
|
||||||
|
|
Loading…
Reference in New Issue