UNPKG

@choerodon/master

Version:
12 lines (9 loc) 377 B
import stores from "../containers/stores"; var AppState = stores.AppState; var getProjectId = function getProjectId() { return AppState.currentMenuType ? AppState.currentMenuType.id : 0; }; var getOrganizationId = function getOrganizationId() { return AppState.currentMenuType ? AppState.currentMenuType.organizationId : 0; }; export { getProjectId, getOrganizationId };