gant-core 0.1.42 → 0.1.43
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.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -1189,7 +1189,7 @@ class GlobalStoreClass {
|
|
|
1189
1189
|
const { user: currentUser, startMenus, isSuperAdmin, ...restInfo } = res;
|
|
1190
1190
|
this.userStore.setUserAggregateInfo({ ...restInfo, currentUser });
|
|
1191
1191
|
this.isSuperAdmin = isSuperAdmin;
|
|
1192
|
-
const localeMenus = typeof menus == "function" ? menus(res) : menus;
|
|
1192
|
+
const localeMenus = typeof menus == "function" ? await menus(res) : menus;
|
|
1193
1193
|
this.menuStore.init(isEmpty(localeMenus) ? startMenus : localeMenus, currentUser.id);
|
|
1194
1194
|
};
|
|
1195
1195
|
init = async (options) => {
|