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.

28 lines
561 B

2 years ago
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
2 years ago
2 years ago
import Layout from '@/layout/Index.vue'
2 years ago
const routes: Array<RouteRecordRaw> =
[
2 years ago
{
path: '/',
2 years ago
name: 'Layout',
component: Layout,
redirect: '/chg',
children: [
{
path: 'chg',
name: 'StockChg',
component: () => import('@/views/stock/chg/Index.vue')
}
]
2 years ago
}
2 years ago
]
const router = createRouter({
2 years ago
history: createWebHashHistory(),
routes
2 years ago
})
2 years ago
export default router