Commit e7f4199a authored by Kittisak Maneewong's avatar Kittisak Maneewong

make to better

parent b40ed674
This diff is collapsed.
......@@ -29,8 +29,5 @@ const app = new Vue({
el: '#app',
router,
store,
render: h => h(App),
created () {
this.$store.dispatch('checkUser')
}
render: h => h(App)
});
......@@ -77,6 +77,11 @@
<script>
export default {
data () {
return {
responsive: false
}
},
computed: {
currentEmployer () {
return this.$store.getters.getEmployer.username
......@@ -85,6 +90,7 @@ export default {
methods: {
logout () {
this.$store.dispatch('logoutEmployer')
this.$router.push('/employer/login')
}
}
}
......
......@@ -26,6 +26,9 @@ export default {
Toolbar,
Footer,
Snackbar
},
created () {
this.$store.dispatch('checkUser')
}
}
</script>
......
......@@ -26,6 +26,9 @@ export default {
Navbar,
Footer,
Snackbar
},
created () {
this.$store.dispatch('checkEmployer')
}
}
</script>
......
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