mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-10 05:15:35 +08:00
refactor: setup with search url
This commit is contained in:
parent
bd4f45dd30
commit
3d0fbba17d
@ -110,11 +110,11 @@ export default () => {
|
||||
onMount(() => {
|
||||
let search = location.search
|
||||
|
||||
if (search.length === 0) {
|
||||
if (search) {
|
||||
const searchList = location.hash.match(/\?.*$/)
|
||||
|
||||
if (searchList.length > 0 && searchList[0].length > 0) {
|
||||
search = searchList[0].replace('?', '', 1)
|
||||
if (Array.isArray(searchList) && searchList[0]) {
|
||||
search = searchList[0].replace('?', '')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user