fix: query strategy
This commit is contained in:
@ -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',
|
||||
|
Reference in New Issue
Block a user