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.
32 lines
714 B
32 lines
714 B
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
|
|
|
|
import Layout from '@/layout/Index.vue'
|
|
|
|
const routes: Array<RouteRecordRaw> =
|
|
[
|
|
{
|
|
path: '/',
|
|
name: 'Layout',
|
|
component: Layout,
|
|
redirect: '/chg',
|
|
children: [
|
|
{
|
|
path: 'chg',
|
|
name: 'StockChg',
|
|
component: () => import('@/views/stock/chg/Index.vue')
|
|
},
|
|
{
|
|
path: 'plate',
|
|
name: 'StockPlate',
|
|
component: () => import('@/views/stock/plate/Index.vue')
|
|
}
|
|
]
|
|
}
|
|
]
|
|
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes
|
|
})
|
|
|
|
export default router
|
|
|