fix(frontend): MkGoogleのクエリを正しくエンコードできるように修正 (#12164)
* (fix)MkGoogleで一部キーワードのURLエンコードに失敗する * Update Changelog --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
c37616de72
commit
aa31b6c65b
2 changed files with 4 additions and 1 deletions
|
@ -21,7 +21,9 @@ const props = defineProps<{
|
|||
const query = ref(props.q);
|
||||
|
||||
const search = () => {
|
||||
window.open(`https://www.google.com/search?q=${query.value}`, '_blank');
|
||||
const sp = new URLSearchParams();
|
||||
sp.append('q', query.value);
|
||||
window.open(`https://www.google.com/search?${sp.toString()}`, '_blank');
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue