cqpCow há 1 ano atrás
pai
commit
51deee2607
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      app/Service/TableHeadService.php

+ 5 - 0
app/Service/TableHeadService.php

@@ -76,6 +76,11 @@ class TableHeadService extends Service
             }
         }
 
+        //时间排序
+        usort($header_default, function($a, $b) {
+            return $a['sort'] - $b['sort'];
+        });
+
         return [true, $header_default];
     }
 }