|
@@ -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;
|