ref: 搜索功能优化,支持方向选择搜索,支持enter回车搜索

This commit is contained in:
muwoo
2021-07-04 13:54:22 +08:00
parent 872f21ae17
commit 9ab64bfa44
3 changed files with 41 additions and 10 deletions

View File

@@ -97,9 +97,9 @@ const actions = {
return;
}
const value = paylpad.value;
// 在插件界面
// 在插件界面不触发其他功能
if((state.selected && state.selected.key === 'plugin-container') || paylpad.searchType === 'subWindow') {
commit('commonUpdate', {searchValue: value})
commit('commonUpdate', {searchValue: value});
return;
}
const fileUrl = clipboard.read('public.file-url').replace('file://', '');