fix: 屏幕截图保存路径字段正名(目标文件路径->截图保存路径), 备用输出目录/文件名折叠进高级参数, 描述写清保存回退链
This commit is contained in:
1 parent
4a3e6e38c7
commit
41b999115e
2 files changed
+8
-8
No files matched your search
@@ -190,8 +190,8 @@ register("Image_Screenshot", async (ctx, node, args) => {
|
||||
if (source === "2") {
|
||||
// 指定图片文件来源:image_path 为输入图片;输出走 输出目录+文件名,两者均未配置时直接返回源文件
|
||||
if (!imageArg.trim()) {
|
||||
throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,目标文件路径需填写源图片路径", {
|
||||
recommendation: "在目标文件路径选择一张已存在的图片,或将图像来源改回「当前屏幕」"
|
||||
throw new RuntimeError("validation_error", "图像来源为「指定图片文件」时,截图保存路径需填写源图片路径", {
|
||||
recommendation: "在截图保存路径选择一张已存在的图片,或将图像来源改回「当前屏幕」"
|
||||
});
|
||||
}
|
||||
const sourceFile = path.resolve(imageArg);
|
||||
|
||||
Reference in new issue
Block a user