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({
mounted () {
const token = this.$cookies.get('Token')
if (token == null) {
this.$route.push('/login')
this.$router.push('/login')
return
}
this.$axios.defaults.headers.common.Authorization = `Bearer ${token}`
......
......@@ -5,7 +5,7 @@ import Vue from 'vue'
export default Vue.extend({
mounted () {
this.$route.push('/manager')
this.$router.push('/manager')
}
})
</script>
......@@ -36,7 +36,7 @@ export default Vue.extend({
mounted () {
const token = this.$cookies.get('Token')
if (token == null) {
this.$route.push('/login')
this.$router.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) {
this.$route.push('/login')
this.$router.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