|
|
@@ -124,8 +124,9 @@ export default {
|
|
|
methods: {
|
|
|
loadTreeData () {
|
|
|
findTreeData({ categoryKey: this.categoryKey }).then(response => {
|
|
|
- const data = response.data || []
|
|
|
+ this.treeData = response.data || []
|
|
|
if (this.hasPermission) {
|
|
|
+ const data = response.data || []
|
|
|
// this.treeData = this.treeData.filter(i => i.isShow !== '1')
|
|
|
// 处理isShow,父级节点不显示子节点都不显示
|
|
|
const noData = data.filter(item => item.isShow === '1')
|