From ac0b0f27402ef82eaa801734fd08ab8d2ba1eb1a Mon Sep 17 00:00:00 2001 From: cool Date: Thu, 1 Feb 2024 10:59:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96html=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/base/service/sys/param.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/base/service/sys/param.ts b/src/modules/base/service/sys/param.ts index 9430516..038b3a9 100644 --- a/src/modules/base/service/sys/param.ts +++ b/src/modules/base/service/sys/param.ts @@ -49,10 +49,12 @@ export class BaseSysParamService extends BaseService { * @param key */ async htmlByKey(key) { - let html = '@content'; + let html = '@title@content'; let result: any = await this.cacheManager.get(`param:${key}`); if (result) { - html = html.replace('@content', result.data); + html = html + .replace('@content', result.data) + .replace('@title', result.name); } else { html = html.replace('@content', 'key notfound'); }