更新青少年详情

This commit is contained in:
yziiy
2025-09-18 17:45:07 +08:00
parent 0d7a41fade
commit 667eae1d30
2 changed files with 8 additions and 10 deletions

View File

@@ -18,12 +18,11 @@ onMounted(() => {
<template>
<div style="margin-top: 24px;">
<h2>{{ detailData.title }}</h2>
<div class="text-indent content">
{{ detailData.content }}
<div class="text-indent content" v-html="detailData.content">
</div>
<div style="display: inline-flex;justify-content: center; width: 100%;">
<!-- <div style="display: inline-flex;justify-content: center; width: 100%;">
<el-image class="w-[300px] h-[300px]" :src="detailData.img"></el-image>
</div>
</div> -->
</div>
</template>
<style lang="scss" scoped>
@@ -31,8 +30,7 @@ onMounted(() => {
margin: 24px 0;
}
.text-indent {
text-indent: 2em;
line-height: 36px;
}
</style>
// .text-indent {
// text-indent: 2em;
// line-height: 36px;
// }</style>

View File

@@ -117,7 +117,7 @@ export function useData() {
id: Number(rowData?.id || 0) ?? "",
}
},
width: "40%",
width: "60%",
hideFooter: true,
closeOnClickModal: false,
contentRenderer: () => h(detailView, { ref: formRef, formInline: null })