Browse Source

系统权限排序

cynthia-qin 1 month atrás
parent
commit
777e264448
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/AppCopy.vue

+ 3 - 0
src/views/AppCopy.vue

@@ -260,6 +260,9 @@ const handleLoginSubmit = () => {
     title: "主页",
     children: []
   }]
+  res.records[0].menu_permissions.sort((a: any, b: any) => {
+      return a.id - b.id;
+    });
     res.records[0].menu_permissions.forEach((item: any) => {
       if(item.menu_name == "知识更新管理") {
         knowledageSystem = 'true';