mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-20 10:55:43 +08:00
统一参数变量命名
This commit is contained in:
@@ -262,7 +262,7 @@ export default defineComponent({
|
||||
|
||||
// 获取操作名称(方法名)
|
||||
const operation = result.name.split(".").pop();
|
||||
const [params = {}] = result.args;
|
||||
const [params = {}] = result.argvs;
|
||||
|
||||
return {
|
||||
...this.defaultArgvs,
|
||||
|
||||
@@ -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":
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user