当后端返回的字段内容为textarea模式时,可能存在换行的情况('\n'),当你不想自己使用js解析时可以使用textarea组件将它展示出来
具体如下
<textarea disabled v-model="content" style="overflow-y:auto;" class="w-100 font-size-24 w-s-color-6" auto-height="true"></textarea>
当后端返回的字段内容为textarea模式时,可能存在换行的情况('\n'),当你不想自己使用js解析时可以使用textarea组件将它展示出来
具体如下
<textarea disabled v-model="content" style="overflow-y:auto;" class="w-100 font-size-24 w-s-color-6" auto-height="true"></textarea>