mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-22 18:22:37 +08:00
统一参数变量命名
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user