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'); }