refactor: 修改导航分类区分语言查询

This commit is contained in:
2025-03-26 14:21:13 +08:00
parent f073ab8163
commit f830dbd50d
2 changed files with 9 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ class Navigation
'name'
])
->withSearch(['name'], ['name' => $name['name']??null])
->language(request()->lang_id)
->select();
return success('获取成功', $navs);
@@ -41,6 +42,7 @@ class Navigation
'created_at'
])
->withSearch(['name'], ['name' => $name['name']??null])
->language(request()->lang_id)
->paginate([
'list_rows' => $name['size'],
'page' => $name['page'],