浏览代码

修改界面

gaoxiong 1 年之前
父节点
当前提交
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;