Skip to content

Commit 5939f37

Browse files
committed
fix: typo
1 parent 8c2fadd commit 5939f37

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/app/src/router.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ const router = createRouter({
1111
router.beforeResolve(async (to, from, next) => {
1212
const env = useEnv()
1313
const user = localStorage?.getItem('visited') || false
14-
const url = window.location.href
15-
const token = url.includes('access_token')
1614
const isOnline = useNetwork().isOnline.value
1715

18-
if (to.name === 'Landing' && token && !env.isDev()) {
16+
if (to.name === 'Landing' && !env.isDev()) {
1917
next({ name: 'Main' })
2018

2119
return

0 commit comments

Comments
 (0)