// 主应用 和 子应用数据传递 import { initGlobalState } from 'qiankun';
import { event, store } from '@wisdom-utils/utils';
export const initialState = {
globalConfig: {}, event, store,
}; const actions = initGlobalState(initialState); // action.setGlobalState({key: value}) 更新状态 // actions.onGlobalStateChange((newState, prevStaet) => {}) 监听状态
export const { setGlobalState } = actions; export const { onGlobalStateChange } = actions;
export default actions;