Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
aeabf7c5
Commit
aeabf7c5
authored
Oct 28, 2024
by
songrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
im文本换行修改
parent
72d19180
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
Detail.vue
src/residentWX/guide/Detail.vue
+1
-5
Session.vue
src/residentWX/nim/Session.vue
+1
-1
vue.config.js
vue.config.js
+3
-3
No files found.
src/residentWX/guide/Detail.vue
View file @
aeabf7c5
...
...
@@ -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>'
)
}
}
}
...
...
src/residentWX/nim/Session.vue
View file @
aeabf7c5
...
...
@@ -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>
...
...
vue.config.js
View file @
aeabf7c5
...
...
@@ -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
'
}
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment