fix verify unclean
This commit is contained in:
parent
e050ae9669
commit
2c785fa9de
1 changed files with 3 additions and 3 deletions
|
@ -23,9 +23,6 @@ const POST = z.object({
|
||||||
enclosure: z.nullable(z.array(z.string()))
|
enclosure: z.nullable(z.array(z.string()))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const Panel = () => {
|
const Panel = () => {
|
||||||
const [posts, setPosts] = useState<z.infer<typeof POST>[]>([])
|
const [posts, setPosts] = useState<z.infer<typeof POST>[]>([])
|
||||||
const [loading, setLoading] = useState(false)
|
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") {
|
if ((e.status == 401 || e.status == 400) && await e.text() == "missing or malformed JWT") {
|
||||||
window.location.href = "/admin/login"
|
window.location.href = "/admin/login"
|
||||||
} else {
|
} else {
|
||||||
|
if (e.status == 200) {
|
||||||
|
setVerifyli([])
|
||||||
|
}
|
||||||
alert(e.statusText)
|
alert(e.statusText)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue