gaoxiong 1 год назад
Родитель
Сommit
1acc305aed
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/views/index.vue

+ 3 - 2
src/views/index.vue

@@ -83,7 +83,7 @@
         <p>发布日期:{{selectMsg.publishTime}}</p>
         <div class="content-box">
           <p class="text-box">{{selectMsg.content}}</p>
-          <div>
+          <div v-if="selectMsg.fileList && selectMsg.fileList.length > 0">
             附件:
             <ul v-if="selectMsg.fileList && selectMsg.fileList.length > 0">
               <li v-for="(v,i) in selectMsg.fileList" :key="v.url">
@@ -403,7 +403,8 @@ export default {
       word-break: break-word;
       white-space: pre-wrap;
       text-align: justify;
-      width: 100%;
+      margin-left: 34px;
+      margin-right: 34px;
       color: #777;
       height: 450px;
       overflow: auto;