调整菜单结构,增加通道列表,支持节点搜索
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
queryChildListInBase,
|
||||
update,
|
||||
add,
|
||||
queryPath
|
||||
queryPath, queryTree
|
||||
} from '@/api/region'
|
||||
|
||||
const actions = {
|
||||
@@ -89,6 +89,16 @@ const actions = {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
},
|
||||
queryTree({ commit }, param) {
|
||||
return new Promise((resolve, reject) => {
|
||||
queryTree(param).then(response => {
|
||||
const { data } = response
|
||||
resolve(data)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user