mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-04-25 05:17:35 +08:00
feat: allow logo to refresh home page
This commit is contained in:
@@ -75,7 +75,11 @@ const userMenu = ref(null)
|
||||
const menuBtn = ref(null)
|
||||
|
||||
const goToHome = async () => {
|
||||
await navigateTo('/', { replace: true })
|
||||
if (router.currentRoute.value.fullPath === '/') {
|
||||
window.dispatchEvent(new Event('refresh-home'))
|
||||
} else {
|
||||
await navigateTo('/', { replace: true })
|
||||
}
|
||||
}
|
||||
const search = () => {
|
||||
showSearch.value = true
|
||||
|
||||
Reference in New Issue
Block a user