统一参数变量命名

This commit is contained in:
fofolee
2025-01-06 11:25:16 +08:00
parent 7475b40a07
commit 5ea6850bb9
14 changed files with 21 additions and 22 deletions

View File

@@ -421,9 +421,9 @@ export default defineComponent({
console.warn("axios 参数解析失败:", code);
return argvs;
}
const url = result.args[0] || "";
const data = hasData ? result.args[1] : {};
const config = result.args[hasData ? 2 : 1] || {};
const url = result.argvs[0] || "";
const data = hasData ? result.argvs[1] : {};
const config = result.argvs[hasData ? 2 : 1] || {};
const {
"Content-Type": contentType,
"User-Agent": userAgent,

View File

@@ -181,7 +181,7 @@ export default defineComponent({
if (!result) return this.defaultArgvs;
const operation = result.name.split(".").pop();
const [firstArg, secondArg] = result.args;
const [firstArg, secondArg] = result.argvs;
const newArgvs = {
...this.defaultArgvs,

View File

@@ -359,7 +359,7 @@ export default defineComponent({
if (!result) return this.defaultArgvs;
const operation = result.name.split(".").pop();
const [firstArg, secondArg, thirdArg] = result.args;
const [firstArg, secondArg, thirdArg] = result.argvs;
const newArgvs = {
...this.defaultArgvs,