mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
ui-default: fix domain template name (#1180)
This commit is contained in:
1 parent
6dcc9ca57f
commit
fbf27379b3
1 file changed
+1
-1
@@ -177,7 +177,7 @@ export class TemplateService extends Service {
|
||||
h.ctx = h.ctx.extend({ domain: h.domain });
|
||||
h.renderHTML = ((orig) => function (name: string, args: Record<string, any>) {
|
||||
const s = name.split('.');
|
||||
let templateName = `${s[0]}.${args.domainId}.${s[1]}`;
|
||||
let templateName = `${s[0]}.${h.domain._id}.${s[1]}`;
|
||||
if (!that.registry[templateName]) templateName = name;
|
||||
return orig(templateName, args);
|
||||
})(h.renderHTML).bind(h);
|
||||
|
||||
Reference in new issue
Block a user