Merge pull request 'edit' (#10) from lyc-dev into main
This commit is contained in:
commit
087c99bc52
|
@ -95,16 +95,7 @@ const getTreeData = () => {
|
||||||
//数据过滤
|
//数据过滤
|
||||||
let upData = transData(volumeOne.value)
|
let upData = transData(volumeOne.value)
|
||||||
let downData = transData(volumeTwo.value)
|
let downData = transData(volumeTwo.value)
|
||||||
treeData.value = [
|
treeData.value = upData.length ? upData : downData
|
||||||
{
|
|
||||||
label: "上册",
|
|
||||||
children: [...upData]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "下册",
|
|
||||||
children: [...downData]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue