瀏覽代碼

消息通知

1178232204@qq.com 3 年之前
父節點
當前提交
96f0c869df
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1 0
      src/css/messageNoti.less
  2. 2 2
      src/html/messageNoti.html

+ 1 - 0
src/css/messageNoti.less

@@ -509,6 +509,7 @@ input[type="number"] {
   .news {
     padding: 5px 0;
     height: 337px;
+    white-space: pre-line;
   }
   .mesgBox-fot {
     height: 39px;

+ 2 - 2
src/html/messageNoti.html

@@ -9,9 +9,9 @@
     <script type="text/html" id="editTmpl">
         <div class="mesgBox">
             <h3>待核查质控任务提醒</h3>
-            <div class="news">${news}</div>
+            <div class="news">${news.replace("\\r\n", " \n ")}</div>
             <div class="mesgBox-fot">
-                <span>系统:${type == 1?'控任务':''}</span>
+                <span>系统:${type == 1?'控任务':''}</span>
                 <span>发送者:${senderName}</span>
                 <span>发送时间:${gmtCreate}</span>
             </div>