fix:修复已知bug

This commit is contained in:
Ying
2022-12-19 19:23:24 +08:00
parent df41df415a
commit c834b46653
10 changed files with 134 additions and 56 deletions

View File

@@ -146,7 +146,7 @@ class AdminRules extends Model
*/
public static function export(string $name): array
{
$list = self::field('id,pid,title,router,icon,auth,type')->where('note', $name)->select()->toArray();
$list = self::field('id,pid,title,router,icon,auth,type')->where('note', $name)->order('sort asc')->select()->toArray();
return self::parseMenuChildren(list_to_tree($list));
}