Commit 650a1f83 authored by amandazk's avatar amandazk

Login/Logout

parent 037ab8b0
......@@ -66,11 +66,11 @@ export default {
},
},
methods: {
login() {
window.location.replace("http://127.0.0.1:8000/accounts/login/");
},
// login() {
// window.location.replace("http://127.0.0.1:8000/accounts/login/");
// },
logout() {
window.localStorage.removeItem("username");
window.localStorage.removeItem("psIfc");
window.location.replace("http://127.0.0.1:8000/");
},
},
......
......@@ -32,7 +32,7 @@ export const auth = {
// this.$router.push('/login')
// }
logout() {
window.localStorage.removeItem("username");
window.localStorage.removeItem("psIfc");
window.location.replace("http://127.0.0.1:8000/")
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment