<template lang="html"> <div id="main-content" v-html="html"></div> </template> <script> import { mapState, mapActions } from 'vuex' export default { props:['html'], computed: { ...mapState({ token: state => state.User.token, isloggedin: state => state.User.isloggedin }) } } </script> <style lang="scss" scoped> </style>