fix: rename data to body

This commit is contained in:
Gabe
2025-10-05 17:47:29 +08:00
parent e562f0b851
commit df8c96569a
5 changed files with 52 additions and 52 deletions

View File

@@ -9,7 +9,7 @@ export const genDeeplFree = ({ texts, from, to }) => {
const url = "https://www2.deepl.com/jsonrpc";
const data = {
const body = {
jsonrpc: "2.0",
method: "LMT_handle_texts",
params: {
@@ -46,5 +46,5 @@ export const genDeeplFree = ({ texts, from, to }) => {
"x-app-version": "2.9.1",
};
return { url, data, headers };
return { url, body, headers };
};