mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: openShared to getShared
This commit is contained in:
parent
aab55688be
commit
1746696472
@ -10,7 +10,7 @@ export function rootContainer(childComponent, args) {
|
|||||||
type: ApplyPluginsType.modify,
|
type: ApplyPluginsType.modify,
|
||||||
initialValue: {},
|
initialValue: {},
|
||||||
});
|
});
|
||||||
const localeShared = plugin.openShared("locale");
|
const localeShared = plugin.getShared("locale");
|
||||||
const routeConfig = getRoutes();
|
const routeConfig = getRoutes();
|
||||||
userConfig.menus = fillMenuData(userConfig.menus, routeConfig);
|
userConfig.menus = fillMenuData(userConfig.menus, routeConfig);
|
||||||
return () => {
|
return () => {
|
||||||
|
@ -31,7 +31,7 @@ export default class Plugin {
|
|||||||
this.shared[key] = obj;
|
this.shared[key] = obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
openShared(key) {
|
getShared(key) {
|
||||||
return this.shared[key];
|
return this.shared[key];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user