add new line

This commit is contained in:
liangping 2021-09-06 16:08:52 +08:00
parent 6373336d6e
commit 6b048a1b1c

View File

@ -56,7 +56,7 @@
</b-tabs>
</b-td>
<b-td v-else>
{{ value }}
{{ addNewLine(value) }}
</b-td>
</b-tr>
</b-tbody>
@ -121,6 +121,9 @@ export default {
formatTokens(value) {
return tokenFormatter(value)
},
addNewLine(value) {
return value.replaceAll('\\n', '\n')
},
},
}
</script>