refactor: http requests

This commit is contained in:
手瓜一十雪
2024-05-14 15:31:53 +08:00
parent 111a92195c
commit 4985be3578
2 changed files with 7 additions and 9 deletions

View File

@@ -22,8 +22,8 @@ export async function postLoginStatus() {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 Edg/124.0.0.0'
});
resolve(true);
} catch {
reject('umami post failed')
} catch (e: any) {
reject(e);
}
});
}