style(web): translate the comments in the src/views directory into English
This commit is contained in:
@@ -1,3 +1,14 @@
|
||||
/*
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-03 17:48:03
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-02-03 17:48:03
|
||||
*/
|
||||
/**
|
||||
* Space Configuration Page
|
||||
* Configures default models for workspace (LLM, embedding, rerank)
|
||||
*/
|
||||
|
||||
import { type FC, useEffect, useState } from 'react';
|
||||
import { Form, App, Button, Skeleton } from 'antd';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
@@ -31,7 +42,7 @@ const SpaceConfig: FC = () => {
|
||||
setPageLoding(false)
|
||||
})
|
||||
}, [])
|
||||
// 封装保存方法,添加提交逻辑
|
||||
/** Save configuration */
|
||||
const handleSave = () => {
|
||||
form
|
||||
.validateFields()
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
/*
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-03 17:48:06
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-02-03 17:48:06
|
||||
*/
|
||||
/**
|
||||
* Space configuration data
|
||||
*/
|
||||
export interface SpaceConfigData {
|
||||
llm: string;
|
||||
embedding: string;
|
||||
rerank: string;
|
||||
}
|
||||
/**
|
||||
* Space config component ref interface
|
||||
*/
|
||||
export interface SpaceConfigRef {
|
||||
handleOpen: () => void;
|
||||
}
|
||||
Reference in New Issue
Block a user