export default { state: {}, actions: ({ model, setState }) => ({ getUserInfo() { const { httpGet } = model("httpModel"); return httpGet("/user/my").then((res) => { if (res) { setState({ ...res }); } }); }, }), };