fix: query strategy

This commit is contained in:
JuanZoran
2023-05-06 11:38:37 +08:00
parent ab212fefe1
commit f17171d28b
10 changed files with 110 additions and 103 deletions

View File

@ -18,8 +18,6 @@ local M = {
}
---@param data any
---@return any
---@overload fun(TransData): TransResult
function M.query(data)
if data.is_word == false or data.from == 'zh' then
return
@ -34,6 +32,7 @@ function M.query(data)
data.result.offline = res and M.formatter(res) or false
end
-- this is a awesome plugin
M.query_field = {
'word',