前端适配

This commit is contained in:
Miyamizu-MitsuhaSang 2025-11-07 17:24:52 +08:00
parent af4139ce91
commit 9a099f46e8
1 changed files with 6 additions and 6 deletions

View File

@ -191,12 +191,6 @@ async def search_word_list(query_word: SearchRequest, user=Depends(get_current_u
)
elif search_lang == "zh":
word_contents = []
if transable:
word_contents = await service.suggest_autocomplete(
query=query,
dict_lang="jp",
model=WordlistJp,
)
word_contents.extend(
await service.search_definition_by_meaning(
query=query_word.query,
@ -204,6 +198,12 @@ async def search_word_list(query_word: SearchRequest, user=Depends(get_current_u
lang="zh",
)
)
if transable:
word_contents = await service.suggest_autocomplete(
query=query,
dict_lang="jp",
model=WordlistJp,
)
else:
word_contents = await service.suggest_autocomplete(
query=query,