[Status Page] Enable Edit Mode only if the token is presented

This commit is contained in:
Louis Lam
2022-03-18 12:39:48 +08:00
parent 00738edbe7
commit 59cdacc052
3 changed files with 10 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ export default {
this.processing = false;
if (res.ok) {
this.$router.push("/status/" + this.slug + "?edit");
location.href = "/status/" + this.slug + "?edit";
} else {
if (res.msg.includes("UNIQUE constraint")) {