🐛 解决 eslint warn

This commit is contained in:
BTMuli
2023-06-28 15:17:39 +08:00
parent 4cd7153d79
commit e0008a367a
2 changed files with 4 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ async function getSyncAvatarDetail(
query: params, query: params,
}) })
.then((res) => { .then((res) => {
if (res.data.retcode !== 0) return res.data as TGApp.BBS.Response.Base; if (res.data.retcode !== 0) return <TGApp.BBS.Response.Base>res.data;
return res.data.data as TGApp.Game.Calculate.AvatarDetail; return <TGApp.Game.Calculate.AvatarDetail>res.data.data;
}); });
} }

View File

@@ -43,8 +43,8 @@ async function getSyncAvatarList(
headers: header, headers: header,
}) })
.then((res) => { .then((res) => {
if (res.data.retcode !== 0) return res.data as TGApp.BBS.Response.Base; if (res.data.retcode !== 0) return <TGApp.BBS.Response.Base>res.data;
return res.data.data.list as TGApp.Game.Calculate.AvatarListItem[]; return <TGApp.Game.Calculate.AvatarListItem[]>res.data.data.list;
}); });
} }