feat: custom request

This commit is contained in:
Gabe Yuan
2024-04-17 17:38:54 +08:00
parent efc51b0d46
commit e369321c66
3 changed files with 56 additions and 14 deletions

View File

@@ -113,6 +113,7 @@ function ApiFields({ translator }) {
fetchInterval = DEFAULT_FETCH_INTERVAL,
dictNo = "",
memoryNo = "",
customRequest = "",
} = api;
const handleChange = (e) => {
@@ -222,6 +223,17 @@ function ApiFields({ translator }) {
</>
)}
{translator.startsWith(OPT_TRANS_CUSTOMIZE) && (
<TextField
size="small"
label={"CUSTOM REQUEST"}
name="customRequest"
value={customRequest}
onChange={handleChange}
multiline
/>
)}
<TextField
size="small"
label={i18n("fetch_limit")}