提交 1aa75df6 作者: 龚洪江

修复:权限·提示

上级 01280aac
...@@ -25,7 +25,6 @@ export const authRouterList = async () => { ...@@ -25,7 +25,6 @@ export const authRouterList = async () => {
return pre; return pre;
}, []); }, []);
}; };
console.log('路由数据-->', getRouteList(routerList));
return Promise.resolve([...getRouteList(routerList)]); return Promise.resolve([...getRouteList(routerList)]);
} }
return Promise.resolve([]); return Promise.resolve([]);
......
...@@ -26,7 +26,7 @@ function PrivateRouter() { ...@@ -26,7 +26,7 @@ function PrivateRouter() {
if (value.length) { if (value.length) {
const routes = [...value, ...whiteRouterList]; const routes = [...value, ...whiteRouterList];
setRouter(routes); //不同账号登录时,重新更新路由(有瑕疵) setRouter(routes); //不同账号登录时,重新更新路由(有瑕疵)
} else { } else if (localStorage.getItem('roleId')) {
message.warning('该账号暂无权限'); message.warning('该账号暂无权限');
navigate('/login', { replace: true }); navigate('/login', { replace: true });
} }
......
import React from 'react'; import React from 'react';
import { Navigate, RouteObject } from 'react-router-dom'; import { RouteObject } from 'react-router-dom';
import ErrorPage from '~/pages/common/error'; import ErrorPage from '~/pages/common/error';
import LayoutView from '~/components/layout'; import LayoutView from '~/components/layout';
import { import {
...@@ -164,16 +164,6 @@ const withLoadingComponent = (comp: JSX.Element) => ( ...@@ -164,16 +164,6 @@ const withLoadingComponent = (comp: JSX.Element) => (
// 路由白名单 // 路由白名单
export const whiteRouterList: Array<RouteObject & RouteObjectType> = [ export const whiteRouterList: Array<RouteObject & RouteObjectType> = [
{ {
path: '/',
element: <Navigate to='/orderManage/productOrder' />,
meta: {
id: 0,
title: '销售订单',
icon: MacCommandOutlined,
},
errorElement: <ErrorPage />,
},
{
path: '/login', path: '/login',
element: withLoadingComponent(<LoginView />), element: withLoadingComponent(<LoginView />),
meta: { meta: {
...@@ -200,6 +190,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -200,6 +190,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/customManage/customList', path: '/customManage/customList',
element: withLoadingComponent(<CustomListView />), element: withLoadingComponent(<CustomListView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 220, id: 220,
title: '客户列表', title: '客户列表',
...@@ -209,6 +200,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -209,6 +200,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/customManage/customMoney', path: '/customManage/customMoney',
element: withLoadingComponent(<CustomMoneyView />), element: withLoadingComponent(<CustomMoneyView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 26200, id: 26200,
title: '现金管理', title: '现金管理',
...@@ -219,6 +211,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -219,6 +211,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/customManage/customMoney/detail', path: '/customManage/customMoney/detail',
element: withLoadingComponent(<CustomMoneyDetail />), element: withLoadingComponent(<CustomMoneyDetail />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 26200, id: 26200,
title: '现金变更', title: '现金变更',
...@@ -229,6 +222,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -229,6 +222,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/customManage/customIdentity', path: '/customManage/customIdentity',
element: withLoadingComponent(<CustomIdentityView />), element: withLoadingComponent(<CustomIdentityView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 240, id: 240,
title: '加盟入驻', title: '加盟入驻',
...@@ -250,6 +244,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -250,6 +244,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/requirementsGathering', path: '/resourceManage/requirementsGathering',
element: withLoadingComponent(<RequirementsGatheringView />), element: withLoadingComponent(<RequirementsGatheringView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 410, id: 410,
title: '需求收集', title: '需求收集',
...@@ -259,6 +254,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -259,6 +254,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/materielManage', path: '/resourceManage/materielManage',
element: withLoadingComponent(<MaterielManageView />), element: withLoadingComponent(<MaterielManageView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 420, id: 420,
title: '宣传管理', title: '宣传管理',
...@@ -268,6 +264,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -268,6 +264,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/materielManage/detail', path: '/resourceManage/materielManage/detail',
element: withLoadingComponent(<MaterielManageDetail />), element: withLoadingComponent(<MaterielManageDetail />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 30100, id: 30100,
title: '宣传管理详情', title: '宣传管理详情',
...@@ -278,6 +275,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -278,6 +275,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/tagManage', path: '/resourceManage/tagManage',
element: withLoadingComponent(<TagManageView />), element: withLoadingComponent(<TagManageView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 430, id: 430,
title: '标签管理', title: '标签管理',
...@@ -287,6 +285,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -287,6 +285,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/industryNews', path: '/resourceManage/industryNews',
element: withLoadingComponent(<IndustryNewsView />), element: withLoadingComponent(<IndustryNewsView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 440, id: 440,
title: '行业新闻', title: '行业新闻',
...@@ -296,6 +295,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -296,6 +295,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/tenderManage', path: '/resourceManage/tenderManage',
element: withLoadingComponent(<TenderManageView />), element: withLoadingComponent(<TenderManageView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 450, id: 450,
title: '招标快讯', title: '招标快讯',
...@@ -305,6 +305,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -305,6 +305,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/tenderManage/detail', path: '/resourceManage/tenderManage/detail',
element: withLoadingComponent(<TenderManageDetail />), element: withLoadingComponent(<TenderManageDetail />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 30500, id: 30500,
title: '招标快讯详情', title: '招标快讯详情',
...@@ -315,6 +316,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -315,6 +316,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/tenderManage/feedback', path: '/resourceManage/tenderManage/feedback',
element: withLoadingComponent(<TenderManageFeedback />), element: withLoadingComponent(<TenderManageFeedback />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 30500, id: 30500,
title: '用户反馈', title: '用户反馈',
...@@ -325,6 +327,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -325,6 +327,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/resourceManage/businessCaseManage', path: '/resourceManage/businessCaseManage',
element: withLoadingComponent(<BusinessCaseManage />), element: withLoadingComponent(<BusinessCaseManage />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 460, id: 460,
title: '业务案例', title: '业务案例',
...@@ -346,6 +349,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -346,6 +349,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/forumManage/dynamicList', path: '/forumManage/dynamicList',
element: withLoadingComponent(<DynamicListView />), element: withLoadingComponent(<DynamicListView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 610, id: 610,
title: '动态列表', title: '动态列表',
...@@ -367,6 +371,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -367,6 +371,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/orderManage/productOrder', path: '/orderManage/productOrder',
element: withLoadingComponent(<ProductOrderView />), element: withLoadingComponent(<ProductOrderView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 810, id: 810,
title: '商城订单', title: '商城订单',
...@@ -376,6 +381,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -376,6 +381,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/orderManage/productOrder/detail', path: '/orderManage/productOrder/detail',
element: withLoadingComponent(<ProductOrderDetail />), element: withLoadingComponent(<ProductOrderDetail />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10010, id: 10010,
title: '商城订单 / 详情', title: '商城订单 / 详情',
...@@ -386,6 +392,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -386,6 +392,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/orderManage/equipmentOrder', path: '/orderManage/equipmentOrder',
element: withLoadingComponent(<EquipmentOrderView />), element: withLoadingComponent(<EquipmentOrderView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 820, id: 820,
title: '租赁订单', title: '租赁订单',
...@@ -395,6 +402,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -395,6 +402,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/orderManage/equipmentOrder/detail', path: '/orderManage/equipmentOrder/detail',
element: withLoadingComponent(<EquipmentOrderDetail />), element: withLoadingComponent(<EquipmentOrderDetail />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10020, id: 10020,
title: '租赁订单 / 详情', title: '租赁订单 / 详情',
...@@ -405,6 +413,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -405,6 +413,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/orderManage/serviceOrder', path: '/orderManage/serviceOrder',
element: withLoadingComponent(<ServiceOrderView />), element: withLoadingComponent(<ServiceOrderView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 830, id: 830,
title: '服务订单', title: '服务订单',
...@@ -414,6 +423,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -414,6 +423,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/orderManage/serviceOrder/detail', path: '/orderManage/serviceOrder/detail',
element: withLoadingComponent(<ServiceOrderDetail />), element: withLoadingComponent(<ServiceOrderDetail />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10010, id: 10010,
title: '服务订单 / 详情', title: '服务订单 / 详情',
...@@ -424,6 +434,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -424,6 +434,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/orderManage/pilotTrainingOrder', path: '/orderManage/pilotTrainingOrder',
element: withLoadingComponent(<PilotTrainingOrderView />), element: withLoadingComponent(<PilotTrainingOrderView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10040, id: 10040,
title: '培训订单', title: '培训订单',
...@@ -445,6 +456,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -445,6 +456,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/courseManage', path: '/mallManage/courseManage',
element: withLoadingComponent(<CourseManageView />), element: withLoadingComponent(<CourseManageView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1010, id: 1010,
icon: <BookOutlined />, icon: <BookOutlined />,
...@@ -454,6 +466,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -454,6 +466,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/serviceList', path: '/mallManage/serviceList',
element: withLoadingComponent(<ServiceListView />), element: withLoadingComponent(<ServiceListView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1020, id: 1020,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -463,6 +476,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -463,6 +476,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/serviceDetail', path: '/mallManage/serviceDetail',
element: withLoadingComponent(<ServiceDetailView />), element: withLoadingComponent(<ServiceDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10120, id: 10120,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -473,6 +487,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -473,6 +487,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/serviceIntroduce', path: '/mallManage/serviceIntroduce',
element: withLoadingComponent(<ServiceIntroduceView />), element: withLoadingComponent(<ServiceIntroduceView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10120, id: 10120,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -483,6 +498,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -483,6 +498,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/rentGoods', path: '/mallManage/rentGoods',
element: withLoadingComponent(<RentListView />), element: withLoadingComponent(<RentListView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1030, id: 1030,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -492,6 +508,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -492,6 +508,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/rentGoods/add', path: '/mallManage/rentGoods/add',
element: withLoadingComponent(<RentAddOrEditOrDetailView />), element: withLoadingComponent(<RentAddOrEditOrDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10135, id: 10135,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -502,6 +519,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -502,6 +519,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/rentGoods/edit', path: '/mallManage/rentGoods/edit',
element: withLoadingComponent(<RentAddOrEditOrDetailView />), element: withLoadingComponent(<RentAddOrEditOrDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10136, id: 10136,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -512,6 +530,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -512,6 +530,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/rentGoods/detail', path: '/mallManage/rentGoods/detail',
element: withLoadingComponent(<RentAddOrEditOrDetailView />), element: withLoadingComponent(<RentAddOrEditOrDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10136, id: 10136,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -522,6 +541,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -522,6 +541,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/mallGoods', path: '/mallManage/mallGoods',
element: withLoadingComponent(<MallGoodsView />), element: withLoadingComponent(<MallGoodsView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1040, id: 1040,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -531,6 +551,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -531,6 +551,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/mallGoods/add', path: '/mallManage/mallGoods/add',
element: withLoadingComponent(<MallAddOrEditOrDetailView />), element: withLoadingComponent(<MallAddOrEditOrDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10145, id: 10145,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -541,6 +562,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -541,6 +562,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/mallGoods/edit', path: '/mallManage/mallGoods/edit',
element: withLoadingComponent(<MallAddOrEditOrDetailView />), element: withLoadingComponent(<MallAddOrEditOrDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10146, id: 10146,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -551,6 +573,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -551,6 +573,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/mallGoods/detail', path: '/mallManage/mallGoods/detail',
element: withLoadingComponent(<MallAddOrEditOrDetailView />), element: withLoadingComponent(<MallAddOrEditOrDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10146, id: 10146,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -561,6 +584,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -561,6 +584,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/produceList', path: '/mallManage/produceList',
element: withLoadingComponent(<ProduceListView />), element: withLoadingComponent(<ProduceListView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1050, id: 1050,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -570,6 +594,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -570,6 +594,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/produceDetail', path: '/mallManage/produceDetail',
element: withLoadingComponent(<ProduceDetailView />), element: withLoadingComponent(<ProduceDetailView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 10160, id: 10160,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -580,6 +605,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -580,6 +605,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/mallManage/makeList', path: '/mallManage/makeList',
element: withLoadingComponent(<MakeListView />), element: withLoadingComponent(<MakeListView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1060, id: 1060,
icon: <SmileOutlined />, icon: <SmileOutlined />,
...@@ -620,6 +646,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -620,6 +646,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/categoryManage/jobServicesCategory/1', path: '/categoryManage/jobServicesCategory/1',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1210, id: 1210,
title: '作业服务分类', title: '作业服务分类',
...@@ -629,6 +656,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -629,6 +656,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/categoryManage/jobServicesCategory/2', path: '/categoryManage/jobServicesCategory/2',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1220, id: 1220,
title: '设备租赁分类', title: '设备租赁分类',
...@@ -638,6 +666,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -638,6 +666,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/categoryManage/jobServicesCategory/3', path: '/categoryManage/jobServicesCategory/3',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1230, id: 1230,
title: '飞手培训分类', title: '飞手培训分类',
...@@ -647,6 +676,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -647,6 +676,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/categoryManage/jobServicesCategory/4', path: '/categoryManage/jobServicesCategory/4',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1240, id: 1240,
title: '产品商城分类', title: '产品商城分类',
...@@ -656,6 +686,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -656,6 +686,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/categoryManage/jobServicesCategory/0', path: '/categoryManage/jobServicesCategory/0',
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1250, id: 1250,
title: '通用分类', title: '通用分类',
...@@ -665,6 +696,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -665,6 +696,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/categoryManage/detail/:id', path: '/categoryManage/detail/:id',
element: withLoadingComponent(<CategoryDetail />), element: withLoadingComponent(<CategoryDetail />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 18600, id: 18600,
title: '分类详情', title: '分类详情',
...@@ -675,6 +707,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -675,6 +707,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/categoryManage/DirectoryManage', path: '/categoryManage/DirectoryManage',
element: withLoadingComponent(<DirectoryManage />), element: withLoadingComponent(<DirectoryManage />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1260, id: 1260,
title: '目录管理', title: '目录管理',
...@@ -863,6 +896,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -863,6 +896,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/pilotTraining/institutionsList', path: '/pilotTraining/institutionsList',
element: withLoadingComponent(<InstitutionsListView />), element: withLoadingComponent(<InstitutionsListView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1510, id: 1510,
title: '执照考试', title: '执照考试',
...@@ -872,6 +906,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -872,6 +906,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/pilotTraining/institutionsList/add', path: '/pilotTraining/institutionsList/add',
element: withLoadingComponent(<AddInstitutionsView />), element: withLoadingComponent(<AddInstitutionsView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1520, id: 1520,
title: '机构上传', title: '机构上传',
...@@ -894,6 +929,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -894,6 +929,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/systemManage/accountManage', path: '/systemManage/accountManage',
element: withLoadingComponent(<AccountManageView />), element: withLoadingComponent(<AccountManageView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1410, id: 1410,
title: '账号管理', title: '账号管理',
...@@ -903,6 +939,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -903,6 +939,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/systemManage/accountLimit', path: '/systemManage/accountLimit',
element: withLoadingComponent(<AccountLimit />), element: withLoadingComponent(<AccountLimit />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1420, id: 1420,
title: '权限角色', title: '权限角色',
...@@ -912,6 +949,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -912,6 +949,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/systemManage/limitInfo', path: '/systemManage/limitInfo',
element: withLoadingComponent(<LimitInfo />), element: withLoadingComponent(<LimitInfo />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 28300, id: 28300,
title: '权限信息', title: '权限信息',
...@@ -922,6 +960,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -922,6 +960,7 @@ export const routerList: Array<RouteObjectType> = [
{ {
path: '/systemManage/companyManage', path: '/systemManage/companyManage',
element: withLoadingComponent(<CompanyManageView />), element: withLoadingComponent(<CompanyManageView />),
errorElement: <ErrorPage />,
meta: { meta: {
id: 1430, id: 1430,
title: '单位管理', title: '单位管理',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论