Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

28 linhas
561 B

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