@skyfox2000/webui 1.2.0 → 1.2.1

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
@@ -35,6 +35,7 @@ export { EventPrefix } from './utils/eventbus';
35
35
  export { default as eventBus } from './utils/eventbus';
36
36
  export { getHostInfo, getAppInfo, userLogin, userLogout, getToken, getUserInfo, mainAppPush, } from './utils/main-openapis';
37
37
  export { router as AppRouter };
38
+ export { routes } from './router';
38
39
  export { useAppInfo } from './stores/appInfo';
39
40
  export { useHostInfo } from './stores/hostInfo';
40
41
  export { useUserInfo } from './stores/userInfo';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyfox2000/webui",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "后台前端通用组件定义",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -32,7 +32,7 @@
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@skyfox2000/fapi": "^1.1.19",
35
- "@skyfox2000/microbase": "^1.2.0",
35
+ "@skyfox2000/microbase": "^1.2.1",
36
36
  "@vue-office/excel": "^1.7.14",
37
37
  "@json2csv/plainjs": "^7.0.6",
38
38
  "async-validator": "^4.2.5",
package/src/index.ts CHANGED
@@ -193,6 +193,7 @@ export {
193
193
 
194
194
  import router from '@/router';
195
195
  export { router as AppRouter };
196
+ export { routes } from '@/router';
196
197
 
197
198
  export { useAppInfo } from '@/stores/appInfo';
198
199
  export { useHostInfo } from '@/stores/hostInfo';
@@ -17,7 +17,7 @@ export const getHostInfo = (): HostInfo => {
17
17
  * 获取当前应用信息
18
18
  */
19
19
  export const getAppInfo = (): AppInfo => {
20
- if (mainAppApis.value) return mainAppApis.value.getAppInfo();
20
+ if (mainAppApis.value && mainAppApis.value.getAppInfo) return mainAppApis.value.getAppInfo();
21
21
  const appInfoStore = useAppInfo();
22
22
  return appInfoStore.appInfo;
23
23
  };