Fixed redirect to login page (#33)
This commit is contained in:
parent
f6b70bb0a1
commit
568de04a87
3 changed files with 4 additions and 10 deletions
|
|
@ -83,8 +83,6 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import auth from '../../auth'
|
||||
import router from '../../router'
|
||||
import message from '../../message'
|
||||
|
||||
import ListService from '../../services/list'
|
||||
|
|
@ -121,12 +119,6 @@
|
|||
this.list = this.theList
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
// Check if the user is already logged in, if so, redirect him to the homepage
|
||||
if (!auth.user.authenticated) {
|
||||
router.push({name: 'home'})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.listService = new ListService()
|
||||
this.taskService = new TaskService()
|
||||
|
|
|
|||
Reference in a new issue