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,
|
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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user