Commit aeabf7c5 authored by songrui's avatar songrui

im文本换行修改

parent 72d19180
......@@ -54,7 +54,7 @@
<div v-for="item in contentList" :key="item.templateMode" class="mb-1 flex"
:style="`order: ${item.templateMode}`">
<span class="shrink-0 mr-1" v-if="item.templateModeTrans != '无'">{{ item.templateModeTrans }} :</span>
<span v-html="textHandle(item.templateContent)"></span>
<span style="white-space: pre-wrap;">{{item.templateContent}}</span>
</div>
</div>
<div v-if="mp4List.length" class="card mt-2">
......@@ -149,10 +149,6 @@ export default {
},
onBack() {
this.$router.back()
},
textHandle(str) {
if (!str) return ''
return str.replace(/\n/g, '<br>')
}
}
}
......
......@@ -21,7 +21,7 @@
<img src="@/assets/image/residentWX/avatar-doctor.svg" alt="" v-show="item.from !== accountId">
</div>
<div class="msg-cont">
<span v-if="item.type === 'text'">{{ item.text }}</span>
<span v-if="item.type === 'text'" style="white-space: pre-wrap;">{{ item.text }}</span>
<FileView v-else-if="['image', 'file'].includes(item.type)" :file="item.file"
@viewImage="viewImage"/>
</div>
......
......@@ -39,11 +39,11 @@ module.exports = defineConfig({
}
},
'/chronic-resident': {
target: 'http://192.168.1.187:8903',
// target: 'https://beta-tumour.zmnyjk.com',
// target: 'http://192.168.1.187:8903',
target: 'https://beta-tumour.zmnyjk.com',
changOrigin: true,
pathRewrite: {
'^/chronic-resident': '/'
'^/chronic-resident': '/chronic-resident'
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment