From 9ffbaa884d34ca4a6d2898e5192e9680eb672e1d Mon Sep 17 00:00:00 2001 From: leiyilu <1509167646@qq.com> Date: Wed, 29 Jun 2022 07:42:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + components/Common.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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",