/** 路由帮助类 * @description 提供url导航的静态方法 */ export declare class RhRouteHelper { /** 存储登录之前的URL */ static oldUrl: string | null; /** 清除权限数据 * @description 从子页面导航时,需要清除权限数据,否则标题无法正常显示 */ static clearAuthorityData(): void; /** 读取地址栏的地址和端口,导航到指定的地址 * @param url:需要跳转到的地址 * @description nginx上需要有相应的配置,形如:`http://${hostName}:${hostPort}/${url}/#/`; * 需要路由跳转,请使用`RhRouteHelperService` * */ static navigateToUrl(url: string): void; /** 去除查询参数和片段,获取真实的路由地址 * @param url 需要处理的url * @param handler 是否需要去除查询参数和片段等数据,默认为`true` */ static getRealRoute(url: string, handler?: boolean): string; /** * 接口地址处理方法,针对`http://`前缀、`${host}`和`${port}`进行处理 * @param url 接口地址 * @param targetHost 替换${host}的host信息,如果不传,默认为浏览器的hostname:`window.location.hostname` * @param tartgetPort 替换${ip}的op信息,如果不传,默认为浏览器的port: */ static interfaceUrlHandler(url: string, targetHost?: string, targetPort?: string, enableHttps?: boolean): string | null; }