acdr-ui/dist/dev/mp-weixin/service/userService.js.map

1 line
905 B
Plaintext
Raw Normal View History

2024-09-19 07:20:14 +08:00
{"version":3,"file":"userService.js","sources":["../../../../src/service/userService.js"],"sourcesContent":["import { useUserStore } from \"@/store\"\nimport { httpGet } from \"@/utils/http\"\n\n// 获取用户信息并且更新缓存\n// 返回用户详细信息\n// 如果获取失败返回为空\nexport const getUserInfo = async () => {\n try {\n const userRes = await httpGet('/user/userinfo')\n if (userRes.code == 200) {\n useUserStore().setUserInfo(userRes.data)\n return userRes.data\n }\n return null\n } catch (e) {\n console.log(e)\n return null\n }\n}\n"],"names":["httpGet","useUserStore"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAMY,MAAC,cAAc,MAAY;AACrC,MAAI;AACF,UAAM,UAAU,MAAMA,WAAO,QAAC,gBAAgB;AAC9C,QAAI,QAAQ,QAAQ,KAAK;AACvBC,iBAAAA,eAAe,YAAY,QAAQ,IAAI;AACvC,aAAO,QAAQ;AAAA,IAChB;AACD,WAAO;AAAA,EACR,SAAQ,GAAG;AACV,YAAQ,IAAI,CAAC;AACb,WAAO;AAAA,EACR;AACH;;"}