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

View File

@ -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 () => {

View File

@ -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];
} }