Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
Project
Project
Details
Activity
Releases
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
张伯涛
cust_web
Commits
09bc9796
Commit
09bc9796
authored
Feb 26, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
b7e91831
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
index.vue
src/views/contentManagement/activity/info/index.vue
+7
-0
index.vue
src/views/contentManagement/notice/info/index.vue
+7
-1
No files found.
src/views/contentManagement/activity/info/index.vue
View file @
09bc9796
...
...
@@ -584,6 +584,13 @@ export default {
},
// 保存方法
submit
()
{
let
details
=
this
.
form
.
details
// 将 HTML 换行转换为纯文本换行
details
=
details
.
replace
(
/<br
\s
*
\/?
>/gi
,
'
\
n'
)
// 替换
<
br
>
标签为
\
n
details
=
details
.
replace
(
/<
\/
p>/gi
,
'
\
n'
)
// 替换
<
/p> 标签为
\n
details
=
details
.
replace
(
/<p
[^
>
]
*>/gi
,
''
)
// 移除
<
p
>
标签
// 更新表单数据
this
.
form
.
details
=
details
this
.
$refs
.
deviceFormRef
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
businessId
!==
null
)
{
...
...
src/views/contentManagement/notice/info/index.vue
View file @
09bc9796
...
...
@@ -421,7 +421,13 @@ export default {
// 拷贝form
const
form
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
form
))
// 转换时间格式
let
details
=
this
.
form
.
details
// 将 HTML 换行转换为纯文本换行
details
=
details
.
replace
(
/<br
\s
*
\/?
>/gi
,
'
\
n'
)
// 替换
<
br
>
标签为
\
n
details
=
details
.
replace
(
/<
\/
p>/gi
,
'
\
n'
)
// 替换
<
/p> 标签为
\n
details
=
details
.
replace
(
/<p
[^
>
]
*>/gi
,
''
)
// 移除
<
p
>
标签
// 更新表单数据
this
.
form
.
details
=
details
this
.
$refs
.
deviceFormRef
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
form
.
businessId
!==
null
)
{
...
...
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