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