ui-next: inject route map

This commit is contained in:
Baoshuo committed 2026-05-10 01:12:46 +08:00
1 parent 0b72aea9ab
commit bfca73ce1f
3 files changed
+6 -1

No files matched your search

+2
View File
@@ -724,6 +724,7 @@ ${c.response.status} ${endTime - startTime}ms ${c.response.length}`);
}
this.registry[name] = HandlerClass;
this.registrationCount[name]++;
this.routeMap[routeName] = path as string;
const Checker = (args) => {
let perm: bigint;
@@ -776,6 +777,7 @@ ${c.response.status} ${endTime - startTime}ms ${c.response.length}`);
this.ctx.effect(() => () => {
this.registrationCount[name]--;
if (!this.registrationCount[name]) delete this.registry[name];
delete this.routeMap[routeName];
dispose();
});
}