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.
70 lines
1.2 KiB
70 lines
1.2 KiB
import { createRouter, createWebHistory } from 'vue-router'
|
|
import Login from '../system/Login.vue'
|
|
import Register from '../system/Register.vue'
|
|
import Index from '../system/Index.vue'
|
|
import Profile from '../system/Profile.vue'
|
|
import Display from '../system/GraphDemo.vue'
|
|
import Builder from '../system/GraphBuilder.vue'
|
|
import Style from '../system/GraphStyle.vue'
|
|
import QA from '../system/GraphQA.vue'
|
|
const routes = [
|
|
{
|
|
path: '/',
|
|
redirect: '/login'
|
|
},
|
|
{
|
|
path: '/login',
|
|
name: 'Login',
|
|
component: Login
|
|
},
|
|
{
|
|
path: '/register',
|
|
name: 'Register',
|
|
component: Register
|
|
},
|
|
{
|
|
path: '/index',
|
|
name: 'Index',
|
|
component: Index
|
|
},
|
|
{
|
|
path: '/profile',
|
|
name: 'Profile',
|
|
component: Profile
|
|
}
|
|
,
|
|
{
|
|
path: '/kg-display',
|
|
name: 'Display',
|
|
component: Display
|
|
},
|
|
{
|
|
path: '/kg-builder',
|
|
name: 'Builder',
|
|
component: Builder
|
|
},
|
|
{
|
|
path: '/kg-style',
|
|
name: 'Style',
|
|
component: Style
|
|
}
|
|
,
|
|
{
|
|
path: '/kg-style',
|
|
name: 'Style',
|
|
component: Style
|
|
},
|
|
|
|
{
|
|
path: '/kg-qa',
|
|
name: 'QA',
|
|
component: QA
|
|
}
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHistory(),
|
|
routes
|
|
})
|
|
|
|
export default router
|