Compare commits
2 Commits
7325106ae7
...
f5a5ae79e1
| Author | SHA1 | Date | |
|---|---|---|---|
| f5a5ae79e1 | |||
| 50eca82286 |
@@ -1,6 +1,6 @@
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
|
||||
export const RouterPath: Record<string, RouteLocationRaw> = {
|
||||
HOME: '/dashboard',
|
||||
HOME: '/monisuo/dashboard',
|
||||
LOGIN: '/auth/sign-in',
|
||||
} as const
|
||||
|
||||
@@ -13,7 +13,7 @@ const router = useRouter()
|
||||
// 已登录则跳转首页
|
||||
watchEffect(() => {
|
||||
if (unref(isLogin)) {
|
||||
router.push('/dashboard')
|
||||
router.push('/monisuo/dashboard')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import { useRouter } from 'vue-router'
|
||||
import Loading from '@/components/loading.vue'
|
||||
|
||||
const router = useRouter()
|
||||
router.push({ name: '/dashboard/' })
|
||||
router.push({ name: '/monisuo/dashboard' })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user