Feat: just post an empty body when on generate code is fired

Since UI for specify code value is absent, just call this api with empty json body to avoid bad request error
pull/107/head
lethe 3 years ago
parent 0a9ae5df13
commit 05a44afbd8

@ -61,7 +61,7 @@ const CardView: FC<ICardViewProps> = ({ appId }) => {
}
const onGenerateCode = async () => {
const [err] = await asyncRunSafe<App>(updateAppSiteAccessToken as any, { url: `/apps/${appId}/site/access-token-reset` }, notify, t)
const [err] = await asyncRunSafe<App>(updateAppSiteAccessToken as any, { url: `/apps/${appId}/site/access-token-reset`, body: {} }, notify, t)
if (!err)
mutate(detailParams)
}

Loading…
Cancel
Save