Explorar o código

Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev

evoxwht %!s(int64=2) %!d(string=hai) anos
pai
achega
4ac807b820
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      crmeb/app/services/system/SystemRouteServices.php

+ 1 - 1
crmeb/app/services/system/SystemRouteServices.php

@@ -82,7 +82,7 @@ class SystemRouteServices extends BaseServices
     public function getTreeList(array $where, string $appName = 'adminapi')
     public function getTreeList(array $where, string $appName = 'adminapi')
     {
     {
         $list = app()->make(SystemRouteCateServices::class)
         $list = app()->make(SystemRouteCateServices::class)
-            ->selectList(['app_name' => $appName], '*', 0, 0, 'add_time desc', [
+            ->selectList(['app_name' => $appName], '*', 0, 0, 'id asc', [
                 'children' => function ($query) use ($where) {
                 'children' => function ($query) use ($where) {
                     $query->where('app_name', $where['app_name'])
                     $query->where('app_name', $where['app_name'])
                         ->when('' !== $where['name_like'], function ($q) use ($where) {
                         ->when('' !== $where['name_like'], function ($q) use ($where) {