mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core: fix startup
This commit is contained in:
1 parent
d72bb2074d
commit
f7e635c40c
2 files changed
+3
-3
No files matched your search
@@ -219,7 +219,7 @@ export async function apply(ctx: Context) {
|
||||
? (!host.includes(this.request.host))
|
||||
: this.request.host !== host)
|
||||
)) withDomainId ||= domainId;
|
||||
res = ctx.server.router.url.call(ctx.server.router, name, args, { query }).toString();
|
||||
res = server.router.url.call(server.router, name, args, { query }).toString();
|
||||
if (anchor) res = `${res}#${anchor}`;
|
||||
if (withDomainId) res = `/d/${withDomainId}${res}`;
|
||||
} catch (e) {
|
||||
|
||||
Reference in new issue
Block a user