(fix)MkGoogleで一部キーワードのURLエンコードに失敗する

This commit is contained in:
kakkokari-gtyih 2023-10-27 23:30:02 +09:00
parent 1d9b5ae1ba
commit 182771142e
1 changed files with 3 additions and 1 deletions

View File

@ -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>