Commit b136e100 authored by bluebird's avatar bluebird

delete password and change to route

parent 33969ba9
Pipeline #5904 canceled with stages
......@@ -33,8 +33,8 @@ export default Vue.extend({
data () {
return {
form: {
username: 'bluebirdsecuri@gmail.com',
password: 'C6dD$stndv&peG'
username: '',
password: ''
},
show: false,
msg: ''
......
......@@ -27,7 +27,7 @@ export default Vue.extend({
mounted () {
const token = this.$cookies.get('Token')
if (token == null) {
window.location.href = '/login'
this.$route.push('/login')
return
}
this.$axios.defaults.headers.common.Authorization = `Bearer ${token}`
......
......@@ -5,7 +5,7 @@ import Vue from 'vue'
export default Vue.extend({
mounted () {
window.location.href = '/manager'
this.$route.push('/manager')
}
})
</script>
......@@ -36,7 +36,7 @@ export default Vue.extend({
mounted () {
const token = this.$cookies.get('Token')
if (token == null) {
window.location.href = '/login'
this.$route.push('/login')
return
}
this.$axios.defaults.headers.common.Authorization = `Bearer ${token}`
......
......@@ -73,7 +73,7 @@ export default {
mounted () {
const token = this.$cookies.get('Token')
if (token == null) {
window.location.href = '/login'
this.$route.push('/login')
return
}
this.$axios.defaults.headers.common.Authorization = `Bearer ${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