69 lines
1.8 KiB
TypeScript
69 lines
1.8 KiB
TypeScript
import type { RouteRecordRaw } from "vue-router";
|
|
|
|
function meta(depth = 3): RouteRecordRaw["meta"] {
|
|
return { depth, tabBarVisible: false, bodyBackground: "#F5F5F8", darkBodyBackground: "#10161f" };
|
|
}
|
|
|
|
export default [
|
|
{
|
|
path: "/management/recycle-exchanges",
|
|
name: "RecycleExchangeList",
|
|
component: () => import("@/pages/recycle/RecycleExchangeList.vue"),
|
|
meta: meta()
|
|
},
|
|
{
|
|
path: "/management/recycle-exchanges/create",
|
|
name: "RecycleExchangeCreate",
|
|
component: () => import("@/pages/recycle/RecycleExchangeCreate.vue"),
|
|
meta: meta(4)
|
|
},
|
|
{
|
|
path: "/management/recycle-exchanges/:id",
|
|
name: "RecycleExchangeDetail",
|
|
component: () => import("@/pages/recycle/RecycleExchangeDetail.vue"),
|
|
meta: meta(4)
|
|
},
|
|
{
|
|
path: "/management/recycle-items",
|
|
name: "RecycleItemList",
|
|
component: () => import("@/pages/recycle/RecycleItemList.vue"),
|
|
meta: meta()
|
|
},
|
|
{
|
|
path: "/management/recycle-items/create",
|
|
name: "RecycleItemCreate",
|
|
component: () => import("@/pages/recycle/RecycleItemEdit.vue"),
|
|
meta: meta(4)
|
|
},
|
|
{
|
|
path: "/management/recycle-items/:id",
|
|
name: "RecycleItemEdit",
|
|
component: () => import("@/pages/recycle/RecycleItemEdit.vue"),
|
|
meta: meta(4)
|
|
},
|
|
{
|
|
path: "/management/recycle-rules",
|
|
name: "RecycleRuleList",
|
|
component: () => import("@/pages/recycle/RecycleRuleList.vue"),
|
|
meta: meta()
|
|
},
|
|
{
|
|
path: "/management/recycle-rules/create",
|
|
name: "RecycleRuleCreate",
|
|
component: () => import("@/pages/recycle/RecycleRuleEdit.vue"),
|
|
meta: meta(4)
|
|
},
|
|
{
|
|
path: "/management/recycle-rules/:id",
|
|
name: "RecycleRuleEdit",
|
|
component: () => import("@/pages/recycle/RecycleRuleEdit.vue"),
|
|
meta: meta(4)
|
|
},
|
|
{
|
|
path: "/management/recycle-stats",
|
|
name: "RecycleStat",
|
|
component: () => import("@/pages/recycle/RecycleStat.vue"),
|
|
meta: meta()
|
|
}
|
|
] as RouteRecordRaw[];
|