|
@@ -815,7 +815,7 @@ export default {
|
|
|
btnGroupName: "新建按钮组",
|
|
|
btnName: "新建按钮组",
|
|
|
children: [],
|
|
|
- btnType: 6,
|
|
|
+ btnType: "DIRECTORY",
|
|
|
};
|
|
|
|
|
|
let _this = this;
|
|
@@ -828,7 +828,7 @@ export default {
|
|
|
// 只保留目录
|
|
|
getAllMenuList(node) {
|
|
|
// 如果当前节点的btnType等于6,则保留该节点,否则删除该节点
|
|
|
- if (node.btnType == 6) {
|
|
|
+ if (node.btnType == "DIRECTORY") {
|
|
|
if (Array.isArray(node.children) && node.children.length != 0) {
|
|
|
// 递归遍历子节点,并删除所有btnType不等于6的子节点
|
|
|
let _this = this;
|