From 0b99e45527b69c2a09802aab86630148f3ac736d Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 29 Jan 2026 17:28:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B7=BB=E5=8A=A0=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/company/list/pages/set_gan_info.tsx | 16 +++++++++++++- .../company/list/pages/set_page_info.tsx | 22 ++++++++++++++++--- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/src/pages/company/list/pages/set_gan_info.tsx b/src/pages/company/list/pages/set_gan_info.tsx index 40365ab..1a0866b 100644 --- a/src/pages/company/list/pages/set_gan_info.tsx +++ b/src/pages/company/list/pages/set_gan_info.tsx @@ -6,19 +6,33 @@ import { } from '@/common'; import { Apis } from '@/gen/Apis'; import { ProTable } from '@ant-design/pro-components'; -import { useSearchParams } from '@umijs/max'; +import { useNavigate, useSearchParams } from '@umijs/max'; import { Space } from 'antd'; import Create from '../modals/JinGangQuCreate'; import Update from '../modals/JinGangQuUpdate'; export default function Index({ title = '金刚区配置' }) { const [searchParams] = useSearchParams(); + const navigate = useNavigate(); return ( + navigate(-1)} + /> + , + ]} > (); + const navigate = useNavigate(); const [menuIndex, setMenuIndex] = useState(0); const [getShowData, setShowData] = useState({}); const [searchParams] = useSearchParams(); @@ -49,7 +50,8 @@ export default function Index({ title = '小程序页面配置' }) { const handleValuesChange = (row: FormData) => { console.log('row', row); let data: ApiTypes.Company.CompanyConfigs.Store = { - companies_id: Number(searchParams.get('id')) || 0, + // companies_id: Number(searchParams.get('id')) || 0, + companies_id: 4, config_key: 'Theme', config_value: { color: formValues?.color, @@ -65,7 +67,8 @@ export default function Index({ title = '小程序页面配置' }) { if (getShowData?.id) { Apis.Company.CompanyConfigs.Update({ ...data, - id: getShowData?.id || 0, + // id: getShowData?.id || 0, + id: 2, }).then(() => { message.success('保存成功'); }); @@ -120,6 +123,19 @@ export default function Index({ title = '小程序页面配置' }) { enableTabs={true} tabKey="company-set-page-info" tabLabel={title} + extra={[ + + navigate(-1)} + /> + , + ]} >