From 6b333bea26b7599a3cf39cfa88333572ad66261e Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 28 五月 2025 16:45:07 +0800 Subject: [PATCH] fix: bug --- src/router/index.ts | 100 +++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 91 insertions(+), 9 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 7d7ffa3..027c19a 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -2,6 +2,7 @@ import Layout from '@/layout/MainLayout/Layout.vue'; import ErrorLayout from '@/layout/ErrorLayout/ErrorLayout.vue'; +import { AppType } from '@/constants'; // import { ElIcons } from '@/typings' @@ -53,6 +54,7 @@ children?: Route[]; }; +//@ts-ignore export const constantRoutes: Route[] = [ { path: '/redirect', @@ -73,6 +75,12 @@ component: Layout, redirect: '/home', alwaysShow: true, + meta: { + rank: 1001, + icon: 'home', + title: '淇濆崟绠$悊', + rootMenu: true, + }, children: [ { path: 'home', @@ -80,21 +88,40 @@ hidden: false, component: () => import('@/views/Home/Home.vue'), meta: { - rank: 10001, - title: '棣栭〉', + rank: 1001, + title: '淇濆崟绠$悊', affix: true, // rootMenu: true, icon: 'home', }, }, + { + path: '/InsuranceOrderDetail/:id', + name: 'InsuranceOrderDetail', + hidden: true, + component: () => import('@/views/Home/InsuranceOrderDetail.vue'), + meta: { + rank: 10002, + title: '淇濆崟璇︽儏', + // rootMenu: true, + icon: 'home', + }, + }, + { + path: '/BatchChange/:id', + name: 'BatchChange', + hidden: true, + component: () => import('@/views/Home/BatchChange.vue'), + meta: { + rank: 10002, + title: '鎵规敼', + // rootMenu: true, + icon: 'home', + }, + }, ], - meta: { - rank: 1001, - icon: 'home', - title: '棣栭〉', - rootMenu: true, - }, }, + { path: '/InsuranceClaim', redirect: 'noRedirect', @@ -150,6 +177,61 @@ }, ], }, + AppType === 'jx' && { + path: '/BalanceManage', + redirect: 'noRedirect', + component: Layout, + hidden: false, + alwaysShow: true, + meta: { + rank: 10010, + title: '浣欓绠$悊', + rootMenu: true, + icon: 'home', + }, + children: [ + { + path: '/BalanceManage', + name: 'BalanceManage', + hidden: false, + alwaysShow: true, + component: () => import('@/views/BalanceManage/BalanceManage.vue'), + meta: { + rank: 10011, + title: '浣欓绠$悊', + // rootMenu: true, + icon: 'home', + }, + }, + ], + }, + // { + // path: '/FileManage', + // redirect: 'noRedirect', + // component: Layout, + // hidden: false, + // alwaysShow: true, + // meta: { + // rank: 10020, + // title: '鏂囦欢绠$悊', + // rootMenu: true, + // icon: 'home', + // }, + // children: [ + // { + // path: '/FileManage', + // name: 'FileManage', + // hidden: false, + // alwaysShow: true, + // component: () => import('@/views/FileManage/FileManage.vue'), + // meta: { + // rank: 10021, + // title: '鏂囦欢绠$悊', + // icon: 'home', + // }, + // }, + // ], + // }, { path: '/Login', name: 'Login', @@ -188,7 +270,7 @@ }, ], }, -]; +].filter(Boolean); export const asyncRoutes: Route[] = [ { -- Gitblit v1.9.1