| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { createRouter, createWebHashHistory } from 'vue-router'
- const routes = [{
- path: '/',
- redirect: '/login'
- },
- {
- path: '/login',
- name: 'Login',
- component: () => import('@/view/login/index.vue')
- },
- {
- path: '/:catchAll(.*)',
- meta: {
- closeTab: true,
- },
- component: () => import('@/view/error/index.vue')
- },
- {
- path: '/dataDashboard',
- meta: {
- closeTab: true,
- },
- component: () => import('@/view/screen/dataDashboard.vue')
- },
- {
- path: '/dataScreen',
- meta: {
- closeTab: true
- },
- component: () => import('@/view/screen/dataScreen.vue')
- }
- ]
- const router = createRouter({
- history: createWebHashHistory(),
- routes,
- })
- export default router
|