Skip to content

Commit

Permalink
Update test.vue (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien8261 authored Nov 14, 2023
1 parent ce9321a commit 46717b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/views/test/test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,7 @@ import TestConfig from '@/views/test/testConfig.vue'
for (const item of data.event_data) {
switch (item.type) {
case 'text':
if (item.data === '\n') {
item.data = '<div style="margin: 5px 0"></div>'
}
content.push(item.data)
content.push(item.data.replace(/\n/g, '<div style="margin: 5px 0"></div>'))
break
case 'face':
content.push(`[face${item.data}]`)
Expand Down

0 comments on commit 46717b0

Please sign in to comment.