t-lj-service 1.0.1 → 1.0.2

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.
@@ -166,7 +166,13 @@ const useApp = ({
166
166
  use?: any[],
167
167
  id?: string,
168
168
  icons?: GlobalIcons | null,
169
- } = {}) => qiankunWindow.__POWERED_BY_QIANKUN__ ? initQianKun(root, App, use, id, icons) : render(root, App, use, id ,icons);
169
+ } = {}) => {
170
+ if (!App) {
171
+ throw new Error('App 组件不能为空');
172
+ }
173
+ const appRoot = root || createApp(App);
174
+ qiankunWindow.__POWERED_BY_QIANKUN__ ? initQianKun(appRoot, App, use, id, icons) : render(appRoot, App, use, id ,icons)
175
+ };
170
176
 
171
177
 
172
178
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "t-lj-service",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.ts",
6
6
  "scripts": {