xiangpei
2024-11-12 79b9c73e0717c244391ab1e15c6f6da9975f2610
src/store/modules/user.ts
@@ -34,6 +34,7 @@
  const getInfo = async (): Promise<void> => {
    const [err, res] = await to(getUserInfo());
    if (res) {
      console.log(res,'getUserInfo');
      const data = res.data;
      const user = data.user;
      const profile = user.avatar == '' || user.avatar == null ? defAva : user.avatar;