From ee9f22dce22d57fff7632c286b6ca41fa188cc5a Mon Sep 17 00:00:00 2001 From: Kuingsmile <96409857+Kuingsmile@users.noreply.github.com> Date: Wed, 28 Jan 2026 17:15:49 +0800 Subject: [PATCH] :sparkles: Feature(custom): add desc for how to debug script in template #468 --- src/renderer/utils/static.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderer/utils/static.ts b/src/renderer/utils/static.ts index 494e1275..35d9bf8f 100644 --- a/src/renderer/utils/static.ts +++ b/src/renderer/utils/static.ts @@ -71,6 +71,7 @@ export const picBedManualUrlList: IStringKeyMap = { export const defaultScriptTemplate = ` // ctx 为 核心PicList实例, extra为额外参数, 其中extra.galleryItem为当前删除的相册对象 // 可用额外API: axios, crypto, fs, path, os, setTimeout, setInterval, clearTimeout, clearInterval, base64Decode, base64Encode +// 使用console.log或ctx.log输出的信息在软件日志文件piclist.log中可以查询到 async function main(ctx, extra) { // 在这里编写你的脚本代码 @@ -81,6 +82,7 @@ async function main(ctx, extra) { export const defaultScriptTemplateEn = ` // ctx is the core PicList instance, extra is additional parameters, among which extra.galleryItem is the currently deleted album object // Available additional APIs: axios, crypto, fs, path, os, setTimeout, setInterval, clearTimeout, clearInterval, base64Decode, base64Encode +// Use console.log or ctx.log to output information that can be found in the software log file piclist.log async function main(ctx, extra) { // Write your script code here