Commit e697694c authored by 旭艳's avatar 旭艳

过滤数据

parent d6dcf1c7
......@@ -265,7 +265,10 @@ export default {
.then((res) => {
var data = res.items.content || []
data.map((item) => {
item.children = item.extPositionLinks
if (item.extPositionLinks) {
item.extPositionLinks = item.extPositionLinks.filter(val => val.target)
item.children = item.extPositionLinks
}
})
this.treeData = [
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment