瀏覽代碼

发票管理路由

xingjinxing 3 年之前
父節點
當前提交
4c1dc2ea00
共有 1 個文件被更改,包括 16 次插入3 次删除
  1. 16 3
      src/router/routes/modules/invoice.ts

+ 16 - 3
src/router/routes/modules/invoice.ts

@@ -1,16 +1,29 @@
 import type { AppRouteRecordRaw } from '/@/router/types';
 import { t } from '/@/hooks/web/useI18n';
 
+import { LAYOUT } from '/@/router/constant';
 export const InvoiceRoute: AppRouteRecordRaw = {
   path: '/invoice',
   name: 'Invoice',
-  component: () => import('/@/views/invoice/index.vue'),
+  component: LAYOUT,
+  redirect: '/invoice/index',
   meta: {
     title: t('routes.dashboard.invoice'),
     icon: 'la:file-invoice-dollar',
     hideChildrenInMenu: true,
+    orderNo: 100000,
   },
+  children: [
+    {
+      path: 'index',
+      name: 'InvoiceIndex',
+      component: () => import('/@/views/invoice/index.vue'),
+      meta: {
+        title: t('routes.dashboard.invoice'),
+        icon: 'la:file-invoice-dollar',
+        hideChildrenInMenu: true,
+      },
+    },
+  ],
 };
-
-
 export default InvoiceRoute;