@witlink/utils
Version:
witlink的工具函数库
44 lines (24 loc) • 1.2 kB
TypeScript
export declare function getButtonPermissions(): any;
export declare function getLocale(): string | null;
export declare function getMenuInfo(): any;
export declare function getToken(): string | null;
export declare function getUserCenterParams(): UserCenterParams;
export declare function getUserCenterParamsByUrl(): Record<string, string>;
export declare function getUserInfo(key?: string | Array<string> | null): any;
export declare function hasPermission(id: string): boolean;
export declare function logoutToUserCenter(): void;
export declare function removeAll(): void;
export declare function removeLocale(): void;
export declare function removeToken(): void;
export declare function setLocale(locale: string): void;
export declare function setMenuInfo(menuInfo: any): void;
export declare function setToken(token: string): void;
export declare function setUserCenterParams(params: UserCenterParams): void;
export declare function setUserInfo(userInfo?: any): void;
export declare function toUserCenterConsole(): void;
declare type UserCenterParams = {
token?: string;
lang?: string;
usercenterUrl?: string;
};
export { }