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 line
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