前端适配
This commit is contained in:
parent
af4139ce91
commit
9a099f46e8
|
|
@ -191,12 +191,6 @@ async def search_word_list(query_word: SearchRequest, user=Depends(get_current_u
|
||||||
)
|
)
|
||||||
elif search_lang == "zh":
|
elif search_lang == "zh":
|
||||||
word_contents = []
|
word_contents = []
|
||||||
if transable:
|
|
||||||
word_contents = await service.suggest_autocomplete(
|
|
||||||
query=query,
|
|
||||||
dict_lang="jp",
|
|
||||||
model=WordlistJp,
|
|
||||||
)
|
|
||||||
word_contents.extend(
|
word_contents.extend(
|
||||||
await service.search_definition_by_meaning(
|
await service.search_definition_by_meaning(
|
||||||
query=query_word.query,
|
query=query_word.query,
|
||||||
|
|
@ -204,6 +198,12 @@ async def search_word_list(query_word: SearchRequest, user=Depends(get_current_u
|
||||||
lang="zh",
|
lang="zh",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
if transable:
|
||||||
|
word_contents = await service.suggest_autocomplete(
|
||||||
|
query=query,
|
||||||
|
dict_lang="jp",
|
||||||
|
model=WordlistJp,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
word_contents = await service.suggest_autocomplete(
|
word_contents = await service.suggest_autocomplete(
|
||||||
query=query,
|
query=query,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue