Commit ee5dcb3e authored by bluebird's avatar bluebird

fix typo

parent b136e100
Pipeline #5905 failed with stages
...@@ -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) {
this.$route.push('/login') this.$router.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 () {
this.$route.push('/manager') this.$router.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) {
this.$route.push('/login') this.$router.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) {
this.$route.push('/login') this.$router.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