dto 例如我在快捷命令
里新建以下命令,
{
"features": {
"code": "professional_s9wbwkk6c5",
"explain": "test_img",
"cmds": [
{
"type": "img",
"label": "test_value_img"
},
{
"type": "img",
"label": "test_value_img2"
}
],
"icon": "logo/quickcommand.png",
"platform": [
"win32",
"darwin",
"linux"
]
},
"program": "quickcommand",
"cmd": "console.log(JSON.stringify(quickcommand.enterData, null, 2))",
"output": "text",
"hasSubInput": false,
"scptarg": "",
"tags": [
"系统命令"
]
}
然后输入一个图片,会出现以下两个选项,
但是我在utools.onPluginEnter()
中只能得到code type payload
三个参数,无法分别这两种选项,我想的是能否把label
参数也加进来。