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 година
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
пре 2 година
пре 2 година
import Layout from '@/layout/Index.vue'
пре 2 година
const routes: Array<RouteRecordRaw> =
[
пре 2 година
{
path: '/',
пре 2 година
name: 'Layout',
component: Layout,
redirect: '/chg',
children: [
{
path: 'chg',
name: 'StockChg',
component: () => import('@/views/stock/chg/Index.vue')
}
]
пре 2 година
}
пре 2 година
]
const router = createRouter({
пре 2 година
history: createWebHashHistory(),
routes
пре 2 година
})
пре 2 година
export default router