MainContent.back.vue 353 B

123456789101112131415161718192021
  1. <template lang="html">
  2. <div id="main-content" v-html="html"></div>
  3. </template>
  4. <script>
  5. import { mapState, mapActions } from 'vuex'
  6. export default {
  7. props:['html'],
  8. computed: {
  9. ...mapState({
  10. token: state => state.User.token,
  11. isloggedin: state => state.User.isloggedin
  12. })
  13. }
  14. }
  15. </script>
  16. <style lang="scss" scoped>
  17. </style>