perf: 空白/换行符处理

This commit is contained in:
xiongxiaoyang 2022-05-30 06:31:27 +08:00
parent f18746d8ff
commit ef4bf6ed47
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
</li> </li>
</ul> </ul>
<div class="intro_txt"> <div class="intro_txt">
<p style="white-space:pre" v-html="book.bookDesc"></p> <p style="white-space:break-spaces" v-html="book.bookDesc"></p>
<a class="icon_hide" href="javascript:void(0)" onclick="" <a class="icon_hide" href="javascript:void(0)" onclick=""
><i></i>收起</a ><i></i>收起</a
> >

View File

@ -113,7 +113,7 @@
<div <div
id="showReading" id="showReading"
class="readBox" class="readBox"
style="font-size: 16px; font-family: microsoft yahei;white-space:pre" style="font-size: 16px; font-family: microsoft yahei;white-space:break-spaces"
v-html="data.bookContent" v-html="data.bookContent"
></div> ></div>
</div> </div>