@umijs/plugins 4.1.10 → 4.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.
|
@@ -167,6 +167,13 @@ export const MicroApp = forwardRef(
|
|
|
167
167
|
props: { settings: settingsFromConfig = {}, ...propsFromConfig } = {},
|
|
168
168
|
} = appConfig || {};
|
|
169
169
|
|
|
170
|
+
const __globalRoutesInfo = {
|
|
171
|
+
appNameKeyAlias,
|
|
172
|
+
masterHistoryType,
|
|
173
|
+
base: globalSettings.base,
|
|
174
|
+
microAppRoutes: globalSettings.microAppRoutes,
|
|
175
|
+
};
|
|
176
|
+
|
|
170
177
|
useEffect(() => {
|
|
171
178
|
setComponentError(null);
|
|
172
179
|
setLoading(true);
|
|
@@ -185,12 +192,7 @@ export const MicroApp = forwardRef(
|
|
|
185
192
|
...propsFromConfig,
|
|
186
193
|
...stateForSlave,
|
|
187
194
|
...propsFromParams,
|
|
188
|
-
__globalRoutesInfo
|
|
189
|
-
appNameKeyAlias,
|
|
190
|
-
masterHistoryType,
|
|
191
|
-
base: globalSettings.base,
|
|
192
|
-
microAppRoutes: globalSettings.microAppRoutes,
|
|
193
|
-
},
|
|
195
|
+
__globalRoutesInfo,
|
|
194
196
|
setLoading,
|
|
195
197
|
},
|
|
196
198
|
},
|
|
@@ -263,6 +265,7 @@ export const MicroApp = forwardRef(
|
|
|
263
265
|
...propsFromConfig,
|
|
264
266
|
...stateForSlave,
|
|
265
267
|
...propsFromParams,
|
|
268
|
+
__globalRoutesInfo,
|
|
266
269
|
setLoading,
|
|
267
270
|
};
|
|
268
271
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugins",
|
|
3
|
-
"version": "4.1
|
|
3
|
+
"version": "4.2.1",
|
|
4
4
|
"description": "@umijs/plugins",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"styled-components": "6.1.1",
|
|
46
46
|
"tslib": "^2",
|
|
47
47
|
"warning": "^4.0.3",
|
|
48
|
-
"@umijs/bundler-utils": "4.1
|
|
48
|
+
"@umijs/bundler-utils": "4.2.1",
|
|
49
49
|
"@umijs/valtio": "1.0.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"antd": "^4.24.1",
|
|
53
|
-
"umi": "4.1
|
|
53
|
+
"umi": "4.2.1"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|