Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
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
office
haoban-3
Commits
9a808f50
Commit
9a808f50
authored
Dec 17, 2021
by
crushh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/12月迭代' into dev
parents
df6caa1b
9e152416
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
editor.vue
src/components/common/editor.vue
+3
-0
salutatorySet.vue
src/views/enterprise/salutatorySet.vue
+2
-1
No files found.
src/components/common/editor.vue
View file @
9a808f50
...
...
@@ -204,6 +204,8 @@ export default {
selectEmoji
(
item
)
{
const
str
=
this
.
textarea
+
item
.
key
;
this
.
textarea
=
str
;
this
.
xcxUrlObj
.
textarea
=
this
.
textarea
;
this
.
$emit
(
'listenWxText'
,
this
.
xcxUrlObj
);
},
onClosed
()
{
this
.
form
=
{
...
...
@@ -557,6 +559,7 @@ export default {
putName
()
{
this
.
textarea
=
this
.
textarea
+
'<微信昵称>'
;
this
.
xcxUrlObj
.
textarea
=
this
.
textarea
;
this
.
$emit
(
'listenWxText'
,
this
.
xcxUrlObj
);
}
}
};
...
...
src/views/enterprise/salutatorySet.vue
View file @
9a808f50
...
...
@@ -81,7 +81,7 @@ export default {
let
str3
=
str2
.
split
(
'<br>'
)
.
filter
(
v
=>
v
)
.
join
(
'
<br>
'
);
.
join
(
''
);
let
hrefReg
=
/href=
[
'"
]([^
"
]
*
)[
'"
]
.*
?
/g
;
// let hrefReg = /(?
<=
href
=
\
").*?(?=
\"
)/img; // 获取a标签的href值
if (hrefReg.test(str3)) {
...
...
@@ -93,6 +93,7 @@ export default {
let href = str3.match(hrefReg)[0];
str3 = str3.replace(/<((a)).*?>/g, '<a ' + href + '>'); // 获取 <a> 并替代
}
console.log(str3);
if (!str3 || /^[ ]*$/.test(str3)) {
// str3不是空字符串 或 不全是空格
this.$message.error('请输入欢迎语内容');
...
...
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