fix verify unclean

This commit is contained in:
jasinco 2025-06-12 17:55:10 +08:00
parent e050ae9669
commit 2c785fa9de

View file

@ -23,9 +23,6 @@ const POST = z.object({
enclosure: z.nullable(z.array(z.string()))
})
const Panel = () => {
const [posts, setPosts] = useState<z.infer<typeof POST>[]>([])
const [loading, setLoading] = useState(false)
@ -62,6 +59,9 @@ const Panel = () => {
if ((e.status == 401 || e.status == 400) && await e.text() == "missing or malformed JWT") {
window.location.href = "/admin/login"
} else {
if (e.status == 200) {
setVerifyli([])
}
alert(e.statusText)
}
})