(fix)MkGoogleで一部キーワードのURLエンコードに失敗する
This commit is contained in:
parent
1d9b5ae1ba
commit
182771142e
|
|
@ -21,7 +21,9 @@ const props = defineProps<{
|
||||||
const query = ref(props.q);
|
const query = ref(props.q);
|
||||||
|
|
||||||
const search = () => {
|
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>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue