|
|
@@ -3,13 +3,15 @@
|
|
|
<template #header>
|
|
|
<app-navbar :title="$t('rules.ryszc')" />
|
|
|
</template>
|
|
|
- <component :is="asyncComponent" :url="getHtmlFileUrl('yszc.htm')" />
|
|
|
+ <HtmlContainer style="padding: 15px;" class="content" :context="formatHtmlString(document?.documentcontent)" />
|
|
|
</app-view>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { defineAsyncComponent } from 'vue'
|
|
|
-import { getHtmlFileUrl } from '@/filters'
|
|
|
+import { useCommonStore } from '@/stores/modules/common'
|
|
|
+import HtmlContainer from '@mobile/components/base/html-container/index.vue'
|
|
|
+import { formatHtmlString } from '@/filters'
|
|
|
|
|
|
-const asyncComponent = defineAsyncComponent(() => import('@mobile/components/base/html-panel/index.vue'))
|
|
|
+const commonStore = useCommonStore()
|
|
|
+const document = commonStore.getDocumentById(4)
|
|
|
</script>
|