Commit 88543c41 by Nguyễn Đức Huy

pull at 4 1

parent 0d7b7b70
Pipeline #1165 failed with stages
in 0 seconds
......@@ -19,7 +19,7 @@
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"prettier --write --fix",
"eslint --fix",
"git add"
],
......
......@@ -70,6 +70,12 @@ export default {
alert('Login Success !')
// window.location.href = '/'
})
.catch(function (error) {
if (error.response) {
alert('Login Fail !')
console.log(error.response.data)
}
})
},
},
}
......
......@@ -80,6 +80,12 @@ export default {
alert('Register Success, please login')
window.location.href = '/'
})
.catch(function (error) {
if (error.response) {
alert('Login Fail !')
console.log(error.response.data)
}
})
} else {
alert("repassword don't match with password")
}
......
// import vuex from "vuex"
// const createStore = () => {
// return new vuex.Store({
// state: {
// token: null,
// },
// mutations: {
// setToken(state, token) {
// state.token = token
// },
// },
// })
// }
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