lizhen_gitee hace 7 meses
padre
commit
f19f0f1916
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      application/common/library/Authcompany.php

+ 1 - 1
application/common/library/Authcompany.php

@@ -551,7 +551,7 @@ class Authcompany extends \fast\Authpc
 
 
         // 必须将结果集转换为数组
         // 必须将结果集转换为数组
         $ruleList = collection(\app\admin\model\PcAuthRule::where('status', 'normal')
         $ruleList = collection(\app\admin\model\PcAuthRule::where('status', 'normal')
-            ->field('id,pid as parentId,name as namerule,title as name,path,component,component_name,icon')
+            ->field('id,pid as parentId,name as namerule,title as name,path,component,component_name as componentName,icon')
             ->where('type', 'NEQ',3)
             ->where('type', 'NEQ',3)
             ->order('weigh', 'desc')
             ->order('weigh', 'desc')
             ->select())->toArray();
             ->select())->toArray();