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.
33 lines
559 B
33 lines
559 B
|
3 months ago
|
import { createRouter, createWebHistory } from 'vue-router'
|
||
|
|
import Login from '../system/Login.vue'
|
||
|
|
import Index from '../system/Index.vue'
|
||
|
|
import Profile from '../system/Profile.vue'
|
||
|
|
|
||
|
|
const routes = [
|
||
|
|
{
|
||
|
|
path: '/',
|
||
|
|
redirect: '/login'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/login',
|
||
|
|
name: 'Login',
|
||
|
|
component: Login
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/index',
|
||
|
|
name: 'Index',
|
||
|
|
component: Index
|
||
|
|
},
|
||
|
|
{
|
||
|
|
path: '/profile',
|
||
|
|
name: 'Profile',
|
||
|
|
component: Profile
|
||
|
|
}
|
||
|
|
]
|
||
|
|
|
||
|
|
const router = createRouter({
|
||
|
|
history: createWebHistory(),
|
||
|
|
routes
|
||
|
|
})
|
||
|
|
|
||
|
|
export default router
|