little-wheels 1.2.8 → 1.2.10
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.
- package/dist/index.d.ts +8 -2
- package/dist/index.es.js +336 -325
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,13 +43,19 @@ export declare class AuthLogin {
|
|
|
43
43
|
*/
|
|
44
44
|
logout(): void;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* 设置Token信息
|
|
47
47
|
* @param {TokenInfoType<number>} data - Token数据对象
|
|
48
48
|
* @param {string} [type] - Token类型:
|
|
49
49
|
* - 'auth'表示授权Token
|
|
50
50
|
* - 不传表示普通Token
|
|
51
51
|
*/
|
|
52
52
|
setToken(data: TokenInfoType<number>, type?: string): void;
|
|
53
|
+
/**
|
|
54
|
+
* 仅设置 Access Token 字符串
|
|
55
|
+
* 适用于通过 URL 传参等方式仅传递 Access Token 的场景
|
|
56
|
+
* @param {string} token - Access Token 字符串
|
|
57
|
+
*/
|
|
58
|
+
setTokenStr(token: string): void;
|
|
53
59
|
/**
|
|
54
60
|
* 获取公司列表
|
|
55
61
|
* @async
|
|
@@ -71,7 +77,7 @@ export declare class AuthLogin {
|
|
|
71
77
|
*/
|
|
72
78
|
getUserBranchGroupByGroupId(params: {
|
|
73
79
|
groupId: string;
|
|
74
|
-
}): Promise<UserGroupItem
|
|
80
|
+
}): Promise<UserGroupItem>;
|
|
75
81
|
/**
|
|
76
82
|
* 刷新Token
|
|
77
83
|
* @async
|