mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui-next: use route name
This commit is contained in:
1 file changed
+1
-1
@@ -86,7 +86,7 @@ export async function apply(ctx: Context) {
|
|||||||
async render(name, args, context) {
|
async render(name, args, context) {
|
||||||
const data: PageData = {
|
const data: PageData = {
|
||||||
HYDRO_INJECTED: true,
|
HYDRO_INJECTED: true,
|
||||||
name,
|
name: context.handler.context._matchedRouteName,
|
||||||
args,
|
args,
|
||||||
url: context.handler.context.req.url!,
|
url: context.handler.context.req.url!,
|
||||||
routeMap: ctx.server.routeMap,
|
routeMap: ctx.server.routeMap,
|
||||||
|
|||||||
Reference in new issue
Block a user