// 最简代码，也就是这些字段必须有
import { useUserStoreHook } from "@/store/modules/user";

export default {
  path: "/order",
  meta: {
    title: "订单管理"
  },
  children: [
    {
      path: "/order/order-loan",
      name: "OrderLoan",
      component: () => import("@/views/order/orderLoan/index.vue"),
      meta: {
        title: "全部订单",
        showParent: true,
        roles: ["admin"]
      }
    },
    {
      path: "/order/order-loan/detail",
      name: "OrderLoanDetail",
      component: () => import("@/views/order/detail/detail.vue"),
      meta: {
        showLink: false,
        title: "订单详情",
        showParent: true
      }
    },
    {
      path: "/order/order-my",
      name: "OrderMy",
      component: () => import("@/views/order/orderMy/index.vue"),
      meta: {
        title: "我的订单",
        showParent: true
      }
    }
  ]
} as RouteConfigsTable;
