layout, mdi, static menu & page, font, ...
This commit is contained in:
@@ -28,6 +28,6 @@ export default {
|
||||
<MapConcernements v-if="isloggedin"/>
|
||||
</template>
|
||||
|
||||
<style lang="css" scoped>
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
||||
|
40
src/views/Static.vue
Normal file
40
src/views/Static.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<script>
|
||||
|
||||
import { mapActions, mapState } from 'pinia'
|
||||
import { StaticsStore } from '@/stores/statics'
|
||||
|
||||
|
||||
export default {
|
||||
props: ['id'],
|
||||
// data(){
|
||||
// return {
|
||||
// block: null
|
||||
// }
|
||||
// },
|
||||
computed: {
|
||||
...mapState(StaticsStore,['loaded', 'statics_byid'])
|
||||
},
|
||||
created () {
|
||||
console.log("static created, id", this.id);
|
||||
// this.loadStatics()
|
||||
},
|
||||
methods: {
|
||||
...mapActions(StaticsStore,['loadStatics'])
|
||||
},
|
||||
components: {
|
||||
// MapConcernements
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<span v-if="!loaded">loading ...</span>
|
||||
<!-- <h2 v-if="loaded">{{ this.id }}</h2> -->
|
||||
<h2 v-if="loaded">{{ statics_byid[id].title }}</h2>
|
||||
<div v-if="loaded" v-html="statics_byid[id].texte"/>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
</style>
|
Reference in New Issue
Block a user