浏览代码

已发布月报,UI_0.8

洪海涛 4 年之前
父节点
当前提交
ce5bff4daf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/monthlyReport/childrenPage/editReport/components/VarText.vue

+ 2 - 2
src/views/monthlyReport/childrenPage/editReport/components/VarText.vue

@@ -16,8 +16,8 @@
         <span
         <span
           v-if="pageDate.status > 10 && textValue"
           v-if="pageDate.status > 10 && textValue"
           style="padding: 10px 0;display: inline-block;"
           style="padding: 10px 0;display: inline-block;"
-          >{{ textValue }}</span
-        >
+          v-html="textValue.replace(/\n/g, '<br />')"
+          />
       </div>
       </div>
     </div>
     </div>
   </div>
   </div>