@skyfox2000/microbase 1.0.13 → 1.0.15

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/lib/index.d.ts CHANGED
@@ -259,10 +259,6 @@ export declare interface MainOpenApis {
259
259
  * 获取当前应用AppInfo
260
260
  */
261
261
  getAppInfo: () => AppInfo;
262
- /**
263
- * 主机解析图标库并同步到子应用
264
- */
265
- createIconLib: (iconLib: Ref<Record<string, any>>) => void;
266
262
  /**
267
263
  * 用户注册接口
268
264
  */
@@ -271,6 +267,10 @@ export declare interface MainOpenApis {
271
267
  * 用户登录接口
272
268
  */
273
269
  userLogin?: (loginInfo: LoginInfo) => Promise<ApiResponse<LoginInfo> | void>;
270
+ /**
271
+ * 用户注销接口
272
+ */
273
+ userLogout?: () => Promise<ApiResponse<any> | void>;
274
274
  /**
275
275
  * 获取授权码
276
276
  * @returns 授权码
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/microbase",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "微前端通用功能与数据类型定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -3,7 +3,7 @@ import { HostInfo } from "@/stores/hostInfo";
3
3
  import { SettingInfo } from "@/stores/settingInfo";
4
4
  import { LoginInfo, UserInfo } from "@/stores/userInfo";
5
5
  import { ApiResponse } from "@skyfox2000/fapi";
6
- import { Ref, ref } from "vue";
6
+ import { ref } from "vue";
7
7
  /**
8
8
  * 是否微服务运行环境
9
9
  * @returns
@@ -58,10 +58,6 @@ export interface MainOpenApis {
58
58
  * 获取当前应用AppInfo
59
59
  */
60
60
  getAppInfo: () => AppInfo;
61
- /**
62
- * 主机解析图标库并同步到子应用
63
- */
64
- createIconLib: (iconLib: Ref<Record<string, any>>) => void;
65
61
  /**
66
62
  * 用户注册接口
67
63
  */
@@ -70,6 +66,10 @@ export interface MainOpenApis {
70
66
  * 用户登录接口
71
67
  */
72
68
  userLogin?: (loginInfo: LoginInfo) => Promise<ApiResponse<LoginInfo> | void>;
69
+ /**
70
+ * 用户注销接口
71
+ */
72
+ userLogout?: () => Promise<ApiResponse<any> | void>;
73
73
  /**
74
74
  * 获取授权码
75
75
  * @returns 授权码