diff --git a/src/components/ai/mod/AiHelperMod.tsx b/src/components/ai/mod/AiHelperMod.tsx index d0d13a4..bb57ea8 100644 --- a/src/components/ai/mod/AiHelperMod.tsx +++ b/src/components/ai/mod/AiHelperMod.tsx @@ -39,8 +39,8 @@ type PropsType = { xixi: any; projIntroduction: string; isFast: boolean; - setisFast:any; - setIsProjModArrayLoading:any; + setisFast: any; + setIsProjModArrayLoading: any; } type ProjModType = { @@ -73,7 +73,7 @@ export default function AiHelperMod(props: PropsType) { // }, [modArray, newModArray]); // const key = `open${Date.now()}`; useEffect(() => { - + setModArray(props.mods); setNewModArray(props.newMods); @@ -83,14 +83,14 @@ export default function AiHelperMod(props: PropsType) { onSuccess({ data }) { // console.log('其他页面状态判断', data); // setStatus(data.generate.generateStatus) - if(data.aiSetting.modsStatus=='GENERATING'){ + if (data.aiSetting.modsStatus == 'GENERATING') { // console.log('嘻嘻'); props.setIsProjModArrayLoading() - + } } }) - + }, [props.mods, props.newMods]); // useEffect(() => { // // console.log('mods', props.mods); @@ -280,7 +280,7 @@ export default function AiHelperMod(props: PropsType) { >删除 - + ) } // if (record.aiFieldStatus == 'GENERATING') { @@ -511,7 +511,18 @@ export default function AiHelperMod(props: PropsType) {
- +
+
+ *功能列表数量为10~15个,如数量不满足请继续用AI生成 +
+
@@ -542,9 +553,9 @@ export default function AiHelperMod(props: PropsType) { disabled={status == 'SUCCESS' || status == 'GENERATING' || props.isFast ? true : false} onClick={() => { props.setisFast() - if(props.projIntroduction){ + if (props.projIntroduction) { props.handleGenerate() - }else{ + } else { props.xixi() } // props.handleGenerate()