fix(frontend): MkGoogleのクエリを正しくエンコードできるように修正 (#12164)
* (fix)MkGoogleで一部キーワードのURLエンコードに失敗する * Update Changelog --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user