inject home html content into vue componenent MainContent
This commit is contained in:
@ -1,14 +1,12 @@
|
||||
<template lang="html">
|
||||
<div id="block-pagetitle" class="">
|
||||
<h1>Test Shared Store ( logged in: {{ isloggedin }} )</h1>
|
||||
<h2 v-if="isloggedin">Shared store is working</h2>
|
||||
</div>
|
||||
<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,
|
||||
@ -19,4 +17,5 @@ export default {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
Reference in New Issue
Block a user