浏览代码

改字段名

cxmo 7 月之前
父节点
当前提交
c12fcbf1db
共有 1 个文件被更改,包括 10 次插入4 次删除
  1. 10 4
      src/views/report/Detail.vue

+ 10 - 4
src/views/report/Detail.vue

@@ -122,10 +122,16 @@ async function getReportInfo() {
         Title:detail.title,
         Content:detail.content,
         HasChapter:Boolean(detail.hasChapter),
-        HeadResource:detail.headResource,
-        EndResource:detail.endResource
+        HeadResource:{
+            ImgUrl:detail.headResource?.imgURL||'',
+            Style:detail.headResource?.style||''
+        },
+        EndResource:{
+            ImgUrl:detail.endResource?.imgURL||'',
+            Style:detail.endResource?.style||''
+        }
     }
-    headImgStyle.value=reportInfo.value.HeadResource.Style?JSON.parse(reportInfo.value.Style):[]
+    headImgStyle.value=reportInfo.value.HeadResource.Style?JSON.parse(reportInfo.value.HeadResource.Style):[]
     endImgStyle.value=reportInfo.value.EndResource.Style?JSON.parse(reportInfo.value.EndResource.Style):[]
     layoutBaseInfo.value['研报标题']=reportInfo.value.Title
     layoutBaseInfo.value['研报作者']=reportInfo.value.Author
@@ -237,7 +243,7 @@ onUnmounted(() => {
         :key="item.value"
         :style="{
           fontFamily:item.family,
-          fontSize:(item.size*2)+'px',
+          fontSize:item.size+'px',
           fontWeight:item.weight,
           textAlign:item.align,
           color:item.color,