- 升级tauri1.4 - 隐藏未完的页面 - 修复一些bug
This commit is contained in:
@@ -13,12 +13,13 @@ const router = useRouter();
|
||||
const keywords = ref("");
|
||||
const elSearch = ref(null);
|
||||
|
||||
const search = () => {
|
||||
const search = async () => {
|
||||
if (keywords.value.trim().length > 0){
|
||||
pubsub.publish("zp.toggleSearch");
|
||||
// elSearch.value.blur()
|
||||
store.commit('addSearchHistory', keywords.value)
|
||||
router.push(`/search/${keywords.value}`);
|
||||
await router.push(`/search/${keywords.value}`);
|
||||
pubsub.publish('zp.search', keywords.value);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user