@ -9,6 +9,9 @@ export function setupPageGuard(router: Router) {
const data = await authStore.getSession()
if (String(data.auth) === 'false' && authStore.token)
authStore.removeToken()
if (to.path === '/500')
next({ name: 'Root' })
else
next()
}
catch (error) {