mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-19 10:15:45 +08:00
加强变量校验,重复和非法时自动重命名,优化变量管理,实时获取最新变量,不再进行增删操作
This commit is contained in:
@@ -179,15 +179,13 @@ export default defineComponent({
|
||||
)?.label;
|
||||
const subFeature = funcNameLabel ? `${funcNameLabel} ` : "";
|
||||
const allArgvs = argvs
|
||||
.filter((item) => item != null && item != "")
|
||||
.map((item) =>
|
||||
item?.hasOwnProperty("__varInputVal__")
|
||||
? window.lodashM.truncate(item.value, {
|
||||
length: 30,
|
||||
omission: "...",
|
||||
})
|
||||
: item
|
||||
)
|
||||
.filter((item) => item != null && item != "");
|
||||
window.lodashM.truncate(stringifyArgv(item).toString(), {
|
||||
length: 30,
|
||||
omission: "...",
|
||||
})
|
||||
);
|
||||
return `${subFeature}${allArgvs.join(",")}`;
|
||||
},
|
||||
updateModelValue(funcName, argvs) {
|
||||
|
||||
Reference in New Issue
Block a user