12345678910111213141516171819202122232425262728293031 |
- <template>
- <div class="w-full pt-6 min-h-[100%] flex flex-col">
- <template v-if="agreement">
- <div class="main-container" v-if="agreement.title && agreement.content">
- <h2 class="text-center">{{ agreement.title }}</h2>
- <div v-html="agreement.content"></div>
- </div>
- <el-empty :description="t('protocolNotConfigured')" :image-size="200" :image="img('static/resource/images/system/empty.png')" v-else />
- </template>
- </div>
- </template>
- <script lang="ts" setup>
- import { ref, reactive, computed } from 'vue'
- import { getAgreementInfo } from '@/app/api/system'
- import { useRoute } from 'vue-router';
- const agreement = ref<any | null>(null)
- const route = useRoute()
- getAgreementInfo(route.query.key).then(({ data }) => {
- agreement.value = data
- useHead({
- title: data.title
- })
- }).catch(err => {
- })
- </script>
- <style lang="scss" scoped></style>
|