diff --git a/client/app/factory/edit/components/DeployBotModal/index.tsx b/client/app/factory/edit/components/DeployBotModal/index.tsx index b7eb8983..53c29e0d 100644 --- a/client/app/factory/edit/components/DeployBotModal/index.tsx +++ b/client/app/factory/edit/components/DeployBotModal/index.tsx @@ -34,7 +34,7 @@ interface IModalProps { enum DeployStatusEnum { HIDEDEPLOYINFO = 'HIDEDEPLOYINFO', - SHOWEPLOYINFO = 'PREEDIT', + SHOWDEPLOYINFO = 'SHOWDEPLOYINFO', PRESUBMIT = 'PRESUBMIT', } @@ -107,7 +107,7 @@ const MyBotDeployModal: React.FC = ({ isOpen, onClose }) => { if (lodash.isEqual(originDeployModel, deployInfo)) { setDeployBtnDisabled(true); deployStatus === DeployStatusEnum.PRESUBMIT && - setDeployStatus(DeployStatusEnum.SHOWEPLOYINFO); + setDeployStatus(DeployStatusEnum.SHOWDEPLOYINFO); } else { deployStatus !== DeployStatusEnum.HIDEDEPLOYINFO && setDeployStatus(DeployStatusEnum.PRESUBMIT); @@ -173,20 +173,25 @@ const MyBotDeployModal: React.FC = ({ isOpen, onClose }) => { className="border-[1.5px] border-[#3F3F46] rounded-[46px]" variant="light" onPress={() => { - setDeployStatus(DeployStatusEnum.SHOWEPLOYINFO); + setDeployStatus(DeployStatusEnum.SHOWDEPLOYINFO); }} > - {I18N.DeployBotModal.index.buShu}{I18N.DeployBotModal.index.daKaiBuShu} + {I18N.DeployBotModal.index.buShu} + {I18N.DeployBotModal.index.daKaiBuShu} + {I18N.DeployBotModal.index.wanCheng} + ); } - if (deployStatus === DeployStatusEnum.SHOWEPLOYINFO) { + if (deployStatus === DeployStatusEnum.SHOWDEPLOYINFO) { return ( <> + {I18N.components.BotCreateFrom.queRen} + ); } @@ -299,7 +309,8 @@ const MyBotDeployModal: React.FC = ({ isOpen, onClose }) => { className="border-[1.5px] border-[#3F3F46] rounded-[46px] bg-[#3F3F46] text-white" onPress={() => onClose()} > - {I18N.DeployBotModal.index.wanCheng} + {I18N.DeployBotModal.index.wanCheng} + ) : (