You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
998 B

import {
createRouter,
createWebHashHistory
} from "vue-router"
import {userStore} from "./store"
import {storeToRefs} from "pinia"
const router = createRouter({
history: createWebHashHistory(),
routes: [
{
path: '/',
redirect: 'Home'
},
{
path: '/home',
name: 'Home',
component: () => import('./View/Home.vue')
},
{
path: '/register',
name: 'Register',
component: () => import('./View/Register.vue')
},
{
path: '/login',
name: 'Login',
component: () => import('./View/Login.vue'),
},
{
path: '/user',
name: 'User',
component: () => import('./View/user/Index.vue'),
redirect: "myInfo",
children: [
{
path: '/myInfo',
component: () => import('./View/user/MyInfo.vue')
},
{
path: '/expressList',
component: () => import('./View/user/ExpressList.vue')
},
{
path: '/expressForm',
component: () => import('./View/user/ExpressForm.vue')
}
]
},
]
})
export default router