chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -30,7 +30,7 @@ export const MessageList = () => {
|
||||
|
||||
const ref = useRef<HTMLDivElement>(null);
|
||||
|
||||
// 自动滚动到最后一条消息
|
||||
// Automatically scroll to the last message
|
||||
useEffect(() => {
|
||||
const lastChild = ref.current?.lastElementChild;
|
||||
lastChild?.scrollIntoView();
|
||||
|
||||
@@ -33,7 +33,7 @@ export const useQuestionForm = (questionEvent: NodeEvent | undefined) => {
|
||||
patch: store.patch,
|
||||
}));
|
||||
const eventSync = useMemoizedFn((event: NodeEvent | undefined) => {
|
||||
// 结束
|
||||
// end
|
||||
if (!event) {
|
||||
testRunService.continueTestRun();
|
||||
return;
|
||||
|
||||
@@ -38,7 +38,7 @@ export interface QuestionFormState {
|
||||
}
|
||||
|
||||
export interface QuestionFormAction {
|
||||
/** 更新状态 */
|
||||
/** update status */
|
||||
patch: (next: Partial<QuestionFormState>) => void;
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ export const useSendMessage = () => {
|
||||
const testRunService = useTestRunService();
|
||||
|
||||
const send = useMemoizedFn(async (text: string) => {
|
||||
// 前端先填入回答
|
||||
// Fill in the answer first
|
||||
const temp: ReceivedMessage = {
|
||||
content: text,
|
||||
type: MessageType.Answer,
|
||||
|
||||
Reference in New Issue
Block a user