diff --git a/CHANGELOG.md b/CHANGELOG.md index a64340d..3414ae7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * 新版清新的模板背景路径**/plugins/xiaoyao-cvs-plugin/resources/dailyNote/icon/bg/** * 模板背景可以自定义具体看内容 */ +* 帮助文件新增兼容自定义以及默认 # 1.0.4 * 新增了`版本号` diff --git a/components/Common.js b/components/Common.js index 901736e..0bfdefb 100644 --- a/components/Common.js +++ b/components/Common.js @@ -7,7 +7,7 @@ export const render = async function (path, params, cfg) { let { render, e } = cfg; let _layout_path = process.cwd() + "/plugins/xiaoyao-cvs-plugin/resources/"; let layout_path= process.cwd() + "/plugins/xiaoyao-cvs-plugin/resources/common/layout/"; - let base64 = await render(paths[0], paths[1], { + let base64 = await render1(paths[0], paths[1], { ...params, _layout_path, defaultLayout: layout_path + "default.html",