add parse search value

This commit is contained in:
2025-05-12 04:32:26 +08:00
parent 896f2f5412
commit 6d148e47f1
4 changed files with 23 additions and 1 deletions

View File

@@ -592,6 +592,9 @@ export class QueryRouter {
return pick(r, pickValue as any);
});
}
/**
* 获取handle函数, 这里会去执行parse函数
*/
getHandle<T = any>(router: QueryRouter, wrapperFn?: HandleFn<T>, ctx?: RouteContext) {
return async (msg: { path: string; key?: string; [key: string]: any }, handleContext?: RouteContext) => {
try {