30 lines
543 B
Vue
30 lines
543 B
Vue
<script setup lang="ts">
|
|
import { ref } from 'vue'
|
|
import { getSystemAgreementApi } from '@/api/vadmin/system/settings'
|
|
|
|
const content = ref(null)
|
|
|
|
// 获取隐私协议内容
|
|
const getSystemConfig = async () => {
|
|
const res = await getSystemAgreementApi()
|
|
if (res) {
|
|
content.value = res.data
|
|
}
|
|
}
|
|
|
|
getSystemConfig()
|
|
</script>
|
|
|
|
<template>
|
|
<div class="content-view" v-html="content"></div>
|
|
</template>
|
|
|
|
<style scoped lang="less">
|
|
.content-view {
|
|
padding: 20px;
|
|
overflow-y: scroll;
|
|
overflow-x: hidden;
|
|
height: 100%;
|
|
}
|
|
</style>
|