fix: location.search not work (#842)

This commit is contained in:
凌莞~(=^▽^=) 2024-07-23 01:23:54 +08:00 committed by GitHub
parent 5b4c1156f2
commit 614430e006
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -108,7 +108,7 @@ export default () => {
} }
onMount(() => { onMount(() => {
let search = location.search let search = location.search || window.location.search
if (search) { if (search) {
const searchList = location.hash.match(/\?.*$/) const searchList = location.hash.match(/\?.*$/)