fix bug list circuits and transactionsenabled
This commit is contained in:
0
src/components/CShowContentPage/CShowContentPage.scss
Executable file
0
src/components/CShowContentPage/CShowContentPage.scss
Executable file
38
src/components/CShowContentPage/CShowContentPage.ts
Executable file
38
src/components/CShowContentPage/CShowContentPage.ts
Executable file
@@ -0,0 +1,38 @@
|
||||
import { defineComponent, ref, computed, PropType, toRef, onMounted, onBeforeUnmount } from 'vue'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { LandingFooter, Logo } from '@components'
|
||||
import { IMyPage } from 'model'
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CShowContentPage',
|
||||
components: {Logo, LandingFooter},
|
||||
props: {
|
||||
path: {
|
||||
type: String,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const { t } = useI18n();
|
||||
const rec = ref<IMyPage | null>(null)
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
async function created() {
|
||||
|
||||
rec.value = await globalStore.loadPage(props.path)
|
||||
|
||||
}
|
||||
|
||||
created()
|
||||
|
||||
return {
|
||||
t,
|
||||
tools,
|
||||
rec,
|
||||
}
|
||||
},
|
||||
})
|
||||
12
src/components/CShowContentPage/CShowContentPage.vue
Executable file
12
src/components/CShowContentPage/CShowContentPage.vue
Executable file
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<div v-if="rec">
|
||||
<div v-html="rec.content"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" src="./CShowContentPage.ts">
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import './CShowContentPage.scss';
|
||||
</style>
|
||||
1
src/components/CShowContentPage/index.ts
Executable file
1
src/components/CShowContentPage/index.ts
Executable file
@@ -0,0 +1 @@
|
||||
export {default as CShowContentPage} from './CShowContentPage.vue'
|
||||
Reference in New Issue
Block a user