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.
27 lines
524 B
27 lines
524 B
2 years ago
|
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
|
||
|
import Login from '../views/main/login.vue';
|
||
|
|
||
|
const routes: Array<RouteRecordRaw> = [
|
||
|
{
|
||
|
path: '/',
|
||
|
redirect: '/cube',
|
||
|
},
|
||
|
{
|
||
|
path: '/login',
|
||
|
name: 'login',
|
||
|
component: () => import('../views/main/login.vue')
|
||
|
},
|
||
|
{
|
||
|
path: '/cube',
|
||
|
name: 'user',
|
||
|
component: () => import('../views/admin/cube.vue')
|
||
|
}
|
||
|
];
|
||
|
|
||
|
const router = createRouter({
|
||
|
history: createWebHashHistory(),
|
||
|
routes,
|
||
|
});
|
||
|
|
||
|
export default router;
|