import { createRouter, createWebHistory } from "vue-router"; export const constantRoutes: any = [ { path: "/", component: () => import("@/views/index.vue"), redirect: "developPage", children: [ { path: "/developPage", component: () => import("@/views/index.vue"), name: "developPage", meta: { title: "本地开发页面" }, }, ], }, ]; const router = createRouter({ history: createWebHistory(), routes: constantRoutes, }); export default router;