UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

18 lines (17 loc) 441 B
export declare function matchParams(rawPath?: string, params?: Record<string, string>): string; /** * 小程序下,获取对应的 H5 路由信息 * @param {Object} route 路由信息 * @returns H5 Url * @example * ```ts * getH5CurrentUrl(this.$route); * ``` */ export declare function getH5CurrentUrl(route: { name?: string; meta?: { rawPath?: Array<string>; }; params: Record<string, string>; }): string;