Explorar el Código

按钮类型修改

lph hace 1 año
padre
commit
e29a0d0644
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      ruoyi-ui/src/views/system/excuteBtnMange/index.vue

+ 2 - 2
ruoyi-ui/src/views/system/excuteBtnMange/index.vue

@@ -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;