添加注释

This commit is contained in:
lyp 2025-01-21 11:32:53 +08:00
parent 00a2c4597a
commit 548a3ed2f0

View File

@ -39,8 +39,8 @@ type PropsType = {
xixi: any; xixi: any;
projIntroduction: string; projIntroduction: string;
isFast: boolean; isFast: boolean;
setisFast:any; setisFast: any;
setIsProjModArrayLoading:any; setIsProjModArrayLoading: any;
} }
type ProjModType = { type ProjModType = {
@ -83,7 +83,7 @@ export default function AiHelperMod(props: PropsType) {
onSuccess({ data }) { onSuccess({ data }) {
// console.log('其他页面状态判断', data); // console.log('其他页面状态判断', data);
// setStatus(data.generate.generateStatus) // setStatus(data.generate.generateStatus)
if(data.aiSetting.modsStatus=='GENERATING'){ if (data.aiSetting.modsStatus == 'GENERATING') {
// console.log('嘻嘻'); // console.log('嘻嘻');
props.setIsProjModArrayLoading() props.setIsProjModArrayLoading()
@ -511,7 +511,18 @@ export default function AiHelperMod(props: PropsType) {
</div> </div>
<div className="aiMod-center"> <div className="aiMod-center">
<div style={{
height: 42, background: " #EFEFEF",
display: 'flex', justifyContent: 'center', alignItems: 'center',
}}>
<div style={{
color: 'red',
fontSize: 14,
}}>
*10~15AI生成
</div>
</div>
</div> </div>
<div className="aiMod-bot"> <div className="aiMod-bot">
<div className='aiMod-bot-table'> <div className='aiMod-bot-table'>
@ -542,9 +553,9 @@ export default function AiHelperMod(props: PropsType) {
disabled={status == 'SUCCESS' || status == 'GENERATING' || props.isFast ? true : false} disabled={status == 'SUCCESS' || status == 'GENERATING' || props.isFast ? true : false}
onClick={() => { onClick={() => {
props.setisFast() props.setisFast()
if(props.projIntroduction){ if (props.projIntroduction) {
props.handleGenerate() props.handleGenerate()
}else{ } else {
props.xixi() props.xixi()
} }
// props.handleGenerate() // props.handleGenerate()