MainContent.vue 684 B

123456789101112131415161718192021222324252627282930313233
  1. <template lang="html">
  2. <div :id="id">
  3. <router-view name="home" :html="html"></router-view>
  4. <router-view name="base"></router-view>
  5. </div>
  6. </template>
  7. <script>
  8. import { mapState, mapActions } from 'vuex'
  9. import router from 'vuejs/route'
  10. export default {
  11. router,
  12. props:['id','html']
  13. // computed: {
  14. // ...mapState({
  15. // token: state => state.User.token,
  16. // isloggedin: state => state.User.isloggedin
  17. // })
  18. // },
  19. // beforeMount() {
  20. // console.log('MainContent beforeMount this.html', this.html);
  21. // },
  22. // mounted() {
  23. // console.log('MainContent this.$router', this.$router);
  24. // }
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. </style>