Login (1)

This commit is contained in:
paolo
2018-10-26 00:30:10 +02:00
parent 3d2b951d93
commit 1d42b184bb
14 changed files with 431 additions and 87 deletions

View File

@@ -18,7 +18,9 @@
<script type="text/javascript">
import Header from './components/Header.vue';
import {mapGetters} from 'vuex'
import * as types from './store/mutation-types'
import {mapGetters, mapActions} from 'vuex'
export default {
name: 'app',
@@ -33,8 +35,14 @@
components: {
appHeader: Header,
},
created(){
methods:{
...mapActions("user", {
tryAutoLogin: types.USER_AUTOLOGIN,
}),
},
created() {
console.info(process.env);
this.tryAutoLogin();
}
}
</script>