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