qlfy-ecological-login 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,7 @@ interface LoginInfo {
23
23
  refreshToken?: string;
24
24
  userPermission: any;
25
25
  props: any;
26
+ routerMode: string;
26
27
  }
27
28
  /** 登陆数据存储 */
28
29
  export declare function setLoginInfo(dataInfo: LoginInfo): void;
@@ -34,4 +35,12 @@ export declare function getLoginInfo(): LoginInfo;
34
35
  export declare function clearLoginData(): void;
35
36
  /** ----------------------- 密码修改 ---------------------- */
36
37
  export declare function changePassword(newPassword: string, oldPassword: string): Promise<any>;
38
+ /**
39
+ * 移除URL中指定的参数,不刷新页面
40
+ * @param {string} routerMode - 路由模式,'hash' 或 'history'
41
+ * @param {string[]} paramsToRemove - 需要移除的参数名称数组
42
+ */
43
+ /** 检测当前路由模式 */
44
+ export declare function detectRouterMode(): 'hash' | 'history';
45
+ export declare function removeUrlParams(paramsToRemove: string[], routerMode?: string): void;
37
46
  export {};