2024-02-18 14:24:48 +08:00
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
|
import type { RouteRecordRaw } from 'vue-router'
|
|
|
|
import type { App } from 'vue'
|
|
|
|
|
2024-04-19 10:04:32 +08:00
|
|
|
export const routes: AppRouteRecordRaw[] = [
|
|
|
|
{
|
|
|
|
path: '/dvCanvas',
|
|
|
|
name: 'dvCanvas',
|
|
|
|
hidden: true,
|
|
|
|
meta: {},
|
|
|
|
component: () => import('@/views/data-visualization/index.vue')
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/dashboard',
|
|
|
|
name: 'dashboard',
|
|
|
|
hidden: true,
|
|
|
|
meta: {},
|
|
|
|
component: () => import('@/views/dashboard/index.vue')
|
|
|
|
}
|
|
|
|
]
|
2024-02-18 14:24:48 +08:00
|
|
|
|
|
|
|
const router = createRouter({
|
|
|
|
history: createWebHashHistory(),
|
|
|
|
routes: routes as RouteRecordRaw[]
|
|
|
|
})
|
|
|
|
|
|
|
|
export const setupRouter = (app: App<Element>) => {
|
|
|
|
app.use(router)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default router
|