mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 解决 eslint warn
This commit is contained in:
@@ -43,8 +43,8 @@ async function getSyncAvatarDetail(
|
||||
query: params,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.data.retcode !== 0) return res.data as TGApp.BBS.Response.Base;
|
||||
return res.data.data as TGApp.Game.Calculate.AvatarDetail;
|
||||
if (res.data.retcode !== 0) return <TGApp.BBS.Response.Base>res.data;
|
||||
return <TGApp.Game.Calculate.AvatarDetail>res.data.data;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ async function getSyncAvatarList(
|
||||
headers: header,
|
||||
})
|
||||
.then((res) => {
|
||||
if (res.data.retcode !== 0) return res.data as TGApp.BBS.Response.Base;
|
||||
return res.data.data.list as TGApp.Game.Calculate.AvatarListItem[];
|
||||
if (res.data.retcode !== 0) return <TGApp.BBS.Response.Base>res.data;
|
||||
return <TGApp.Game.Calculate.AvatarListItem[]>res.data.data.list;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user