drafted router with vue-router, drafted search results display page

This commit is contained in:
2019-06-03 13:06:44 +02:00
parent fee806afbd
commit d8e5f93c14
11 changed files with 420 additions and 53 deletions

View File

@@ -1,18 +1,30 @@
<template lang="html">
<div id="main-content" v-html="html"></div>
<div :id="id">
<router-view name="home" :html="html"></router-view>
<router-view name="base"></router-view>
</div>
</template>
<script>
import { mapState, mapActions } from 'vuex'
import router from 'vuejs/route'
export default {
props:['html'],
computed: {
...mapState({
token: state => state.User.token,
isloggedin: state => state.User.isloggedin
})
}
router,
props:['id','html']
// computed: {
// ...mapState({
// token: state => state.User.token,
// isloggedin: state => state.User.isloggedin
// })
// },
// beforeMount() {
// console.log('MainContent beforeMount this.html', this.html);
// },
// mounted() {
// console.log('MainContent this.$router', this.$router);
// }
}
</script>