import { createRouter, createWebHistory } from "vue-router"; import FinanceBillManage from "./modules/financeBillManage"; import Login from "@/pages/login/index.vue"; import Layout from "@/layout/index.vue"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: "/", redirect: "/accounts", meta: { title: "应收款管理", name: "accounts" }, component: Layout, children: [ { path: "/accounts", name: "Accounts", component: () => import("@/pages/index.vue"), meta: { title: "应收款管理", }, }, ], }, { path: "/login", name: "login", component: Login, }, ...FinanceBillManage, ], }); export default router;