🐛 Fix value passing issue

This commit is contained in:
LittleSheep 2024-03-16 15:08:18 +08:00
parent caf75166a0
commit 2e74dcabd0

View File

@ -123,7 +123,7 @@ async function submit() {
const res = await request("/api/users", { const res = await request("/api/users", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify(data), body: JSON.stringify(payload),
}) })
if (res.status !== 200) { if (res.status !== 200) {
error.value = await res.text() error.value = await res.text()