This commit is contained in:
2025-05-11 20:57:29 +08:00
parent 442036a9f1
commit 10a344f6d6

View File

@@ -9,6 +9,7 @@
axios.post('login', this.user) axios.post('login', this.user)
.then(data => { .then(data => {
localStorage.setItem("username", this.user.name); localStorage.setItem("username", this.user.name);
localStorage.setItem("token", data.token);
location.href = "/admin"; location.href = "/admin";
}) })
}, },