Redirect to login after applied configs

This commit is contained in:
Yukino Song
2024-09-15 13:06:35 +08:00
parent 4a0d425b7c
commit 038464ad45

View File

@@ -405,6 +405,17 @@
}, 5000);
fetch("/api/restart", {
method: "POST"
})
.then((resp) => {
if (resp.status !== 200) {
location.href = './login'
return
}
})
.catch((e) => {
location.href = './login'
console.error(e)
return
});
}
});