fix:内容
All checks were successful
Build and Push Docker Image / build (push) Successful in 3m33s

This commit is contained in:
zsqtony 2025-10-11 10:18:18 +08:00
parent 697d197882
commit b98300d927

View File

@ -163,6 +163,11 @@ export default function Create(props: MyBetaModalFormProps) {
valueEnum: CustomerMomentsContentTypeEnum,
required: true,
colProps: { span: 24 },
fieldProps: {
onChange: (e: any) => {
setContentType(e?.target?.value);
},
},
}),
{
name: ['content_type'],
@ -221,7 +226,6 @@ export default function Create(props: MyBetaModalFormProps) {
name: ['content_type'],
valueType: 'dependency',
columns: ({ content_type }: any) => {
setContentType(content_type);
return content_type === 'MiniProgram'
? [
{
@ -282,16 +286,14 @@ export default function Create(props: MyBetaModalFormProps) {
const handleNext = async () => {
// 这里可以添加表单验证逻辑
if (current < steps.length - 1) {
setCurrent(current + 1);
}
setCurrent(1);
console.log('next', current);
};
// 处理上一步
const handlePrev = () => {
if (current > 0) {
setCurrent(current - 1);
}
setCurrent(0);
console.log('Prev', current);
};
return (
@ -375,7 +377,7 @@ export default function Create(props: MyBetaModalFormProps) {
}}
/>
</div>
{current ? <MyinfoPreview item={{ type: getContentType }} /> : ''}
<MyinfoPreview item={{ type: getContentType }} />
</Space>
</Space>
}