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