提交 b32a1a73 作者: ZhangLingKun

优化:实名认证代码优化

上级 ec0d77b8
流水线 #7139 已通过 于阶段
in 1 分 8 秒
...@@ -79,7 +79,7 @@ const AddEditModal: React.FC<propType> = (props) => { ...@@ -79,7 +79,7 @@ const AddEditModal: React.FC<propType> = (props) => {
form.setFieldsValue({ form.setFieldsValue({
...data, ...data,
companyId: companyList.find((i) => i.label === data.companyName)?.value, companyId: companyList.find((i) => i.label === data.companyName)?.value,
roleId: data.roleInfoDTO.id, roleId: data.roleInfoDTO?.id || undefined,
}); });
}, [companyList]); }, [companyList]);
return ( return (
......
...@@ -783,7 +783,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -783,7 +783,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<CategoryManage />), element: withLoadingComponent(<CategoryManage />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 710, id: 730,
title: '培训分类', title: '培训分类',
icon: <AppstoreAddOutlined />, icon: <AppstoreAddOutlined />,
}, },
...@@ -793,7 +793,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -793,7 +793,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<InstitutionsListView />), element: withLoadingComponent(<InstitutionsListView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 720, id: 710,
title: '执照考试', title: '执照考试',
icon: <VerifiedOutlined />, icon: <VerifiedOutlined />,
}, },
...@@ -803,7 +803,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -803,7 +803,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<AddInstitutionsView />), element: withLoadingComponent(<AddInstitutionsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 721, id: 711,
title: '机构上传', title: '机构上传',
icon: <UserOutlined />, icon: <UserOutlined />,
hidden: true, hidden: true,
...@@ -814,7 +814,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -814,7 +814,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<AddInstitutionsView />), element: withLoadingComponent(<AddInstitutionsView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 722, id: 712,
title: '机构编辑', title: '机构编辑',
icon: <UserOutlined />, icon: <UserOutlined />,
hidden: true, hidden: true,
...@@ -825,7 +825,7 @@ export const routerList: Array<RouteObjectType> = [ ...@@ -825,7 +825,7 @@ export const routerList: Array<RouteObjectType> = [
element: withLoadingComponent(<CourseManageView />), element: withLoadingComponent(<CourseManageView />),
errorElement: <ErrorPage />, errorElement: <ErrorPage />,
meta: { meta: {
id: 730, id: 720,
icon: <BookOutlined />, icon: <BookOutlined />,
title: '课程管理', title: '课程管理',
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论