mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-17 08:54:19 +08:00
统一参数变量命名
This commit is contained in:
@@ -113,7 +113,7 @@ const customComponentGuide = {
|
||||
if (!result) return this.defaultArgvs;
|
||||
|
||||
// 处理解析结果
|
||||
const [url, config] = result.args;
|
||||
const [url, config] = result.argvs;
|
||||
|
||||
// 返回处理后的参数对象
|
||||
return {
|
||||
|
||||
@@ -303,13 +303,13 @@ export const parseFunction = (functionStr, options = {}) => {
|
||||
}
|
||||
};
|
||||
|
||||
const args = callExpression.arguments.map((arg, index) =>
|
||||
const argvs = callExpression.arguments.map((arg, index) =>
|
||||
processNode(arg, `arg${index}`)
|
||||
);
|
||||
|
||||
return {
|
||||
name,
|
||||
args,
|
||||
argvs,
|
||||
};
|
||||
} catch (e) {
|
||||
console.warn("Failed to parse function:", e);
|
||||
|
||||
Reference in New Issue
Block a user