App.vue 363 B

12345678910111213141516171819202122
  1. <template>
  2. <transition name="fade">
  3. <router-view/>
  4. </transition>
  5. </template>
  6. <script>
  7. import { mapActions } from 'vuex'
  8. export default {
  9. created () {
  10. this.getWebConfig()
  11. this.fetchUserConfig()
  12. },
  13. methods: {
  14. ...mapActions({
  15. getWebConfig: 'common/getWebConfig',
  16. fetchUserConfig: 'user/fetchUserConfig'
  17. })
  18. }
  19. }
  20. </script>