diff --git a/src/frontend/client/src/@types/chat.ts b/src/frontend/client/src/@types/chat.ts index 357df191c..c64f1c3b4 100644 --- a/src/frontend/client/src/@types/chat.ts +++ b/src/frontend/client/src/@types/chat.ts @@ -91,6 +91,8 @@ export interface RunningStatus { showStop: boolean; /** 引导词 */ guideWord?: string[]; + /** 重新运行展示 */ + showReRun?: boolean; } // 毕昇配置 diff --git a/src/frontend/client/src/pages/appChat/ChatInput.tsx b/src/frontend/client/src/pages/appChat/ChatInput.tsx index dc04f7514..875425940 100644 --- a/src/frontend/client/src/pages/appChat/ChatInput.tsx +++ b/src/frontend/client/src/pages/appChat/ChatInput.tsx @@ -7,7 +7,7 @@ import { useAreaText } from "./useAreaText"; export default function ChatInput({ v }) { const [bishengConfig] = useRecoilState(bishengConfState) - const { inputDisabled, error: inputMsg, showUpload, showStop } = useRecoilValue(currentRunningState) + const { inputDisabled, error: inputMsg, showUpload, showStop, showReRun } = useRecoilValue(currentRunningState) const { accepts, chatState, inputRef, setChatFiles, handleInput, handleRestart, handleSendClick, handleStopClick } = useAreaText() const [fileUploading, setFileUploading] = useState(false) @@ -57,7 +57,8 @@ export default function ChatInput({ v }) { is工作流 & 未展示停止按钮 & 没有错误消息 */}
- {!showStop && chatState?.flow?.flow_type === 10 && !inputMsg &&