2024-04-06 09:55:10 +08:00
|
|
|
import { createRouter, createWebHistory } from "vue-router";
|
2024-04-06 11:10:22 +08:00
|
|
|
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
|
|
|
|
2024-04-06 11:12:39 +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: [
|
|
|
|
{
|
2024-04-06 09:55:10 +08:00
|
|
|
path: "/",
|
2024-04-06 11:04:48 +08:00
|
|
|
redirect: "/accounts",
|
2024-04-06 11:12:39 +08:00
|
|
|
meta: { title: "应收款管理", name: "accounts" },
|
2024-04-06 11:04:48 +08:00
|
|
|
component: Layout,
|
|
|
|
children: [
|
|
|
|
{
|
2024-04-06 11:12:39 +08:00
|
|
|
path: "/accounts",
|
|
|
|
name: "Accounts",
|
|
|
|
component: () => import("@/pages/index.vue"),
|
2024-04-06 11:04:48 +08:00
|
|
|
meta: {
|
2024-04-06 11:12:39 +08:00
|
|
|
title: "应收款管理",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2024-04-06 09:32:25 +08:00
|
|
|
},
|
2024-04-06 11:28:15 +08:00
|
|
|
{
|
|
|
|
path: "/login",
|
|
|
|
name: "login",
|
|
|
|
component: Login,
|
|
|
|
},
|
2024-04-06 11:10:22 +08:00
|
|
|
...FinanceBillManage,
|
2024-04-06 09:55:10 +08:00
|
|
|
],
|
|
|
|
});
|
2024-04-06 09:32:25 +08:00
|
|
|
|
2024-04-06 09:55:10 +08:00
|
|
|
export default router;
|