dykj-college-back-office-ma.../src/router/index.js

35 lines
819 B
JavaScript
Raw Normal View History

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