dongxiaoqin 1 год назад
Родитель
Сommit
9a8b04c838
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/adminapi/lists/fault_code/FaultCodeLists.php

+ 1 - 0
app/adminapi/lists/fault_code/FaultCodeLists.php

@@ -46,6 +46,7 @@ class FaultCodeLists extends BaseAdminDataLists implements ListsSearchInterface
 
     public function queryWhere()
     {
+        $where = [];
         if (isset($this->params['type_id']) && $this->params['type_id'] !== '') {
             $pid = FaultType::where('id', $this->params['type_id'])->value('pid');
             if ($pid == 0) {