1
0
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:
万纯 2021-01-05 11:26:20 +08:00
parent aab55688be
commit 1746696472
2 changed files with 2 additions and 2 deletions
packages
fes-plugin-layout/src/template
fes-runtime/src/plugin

@ -10,7 +10,7 @@ export function rootContainer(childComponent, args) {
type: ApplyPluginsType.modify,
initialValue: {},
});
const localeShared = plugin.openShared("locale");
const localeShared = plugin.getShared("locale");
const routeConfig = getRoutes();
userConfig.menus = fillMenuData(userConfig.menus, routeConfig);
return () => {

@ -31,7 +31,7 @@ export default class Plugin {
this.shared[key] = obj;
}
openShared(key) {
getShared(key) {
return this.shared[key];
}