User sign in

This commit is contained in:
2024-03-28 20:44:13 +08:00
parent 3a1cf006f4
commit 96526da432
33 changed files with 750 additions and 34 deletions

View File

@@ -131,7 +131,7 @@ async function postMoment(evt: SubmitEvent) {
loading.value = true
const res = await request("interactive", url, {
method: method,
headers: { "Content-Type": "application/json", Authorization: `Bearer ${getAtk()}` },
headers: { "Content-Type": "application/json", Authorization: `Bearer ${await getAtk()}` },
body: JSON.stringify(payload)
})
if (res.status === 200) {