统一参数变量命名

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

@@ -262,7 +262,7 @@ export default defineComponent({
// 获取操作名称(方法名)
const operation = result.name.split(".").pop();
const [params = {}] = result.args;
const [params = {}] = result.argvs;
return {
...this.defaultArgvs,

View File

@@ -337,7 +337,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,
@@ -362,7 +362,7 @@ export default defineComponent({
case "join":
case "resolve":
newArgvs.paths = result.args.map((arg) => arg);
newArgvs.paths = result.argvs.map((arg) => arg);
break;
case "relative":

View File

@@ -220,7 +220,7 @@ export default defineComponent({
if (!result) return this.defaultArgvs;
// 返回解析结果
const [command, options = {}] = result.args;
const [command, options = {}] = result.argvs;
return {
command: command || this.defaultArgvs.command,
options: {