Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c50f59d1
authored
Jan 22, 2025
by
puhui999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【缺陷修复】mall: 修复当客服消息为空时按回车键会发送空消息的 bug
parent
39106843
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/views/mall/promotion/kefu/components/KeFuMessageList.vue
+2
-1
No files found.
src/views/mall/promotion/kefu/components/KeFuMessageList.vue
View file @
c50f59d1
...
@@ -279,8 +279,9 @@ const handleSendMessage = async (event: any) => {
...
@@ -279,8 +279,9 @@ const handleSendMessage = async (event: any) => {
return
return
}
}
// 1. 校验消息是否为空
// 1. 校验消息是否为空
if
(
isEmpty
(
unref
(
message
.
value
)))
{
if
(
isEmpty
(
unref
(
message
.
value
)
?.
trim
()
))
{
messageTool
.
notifyWarning
(
'请输入消息后再发送哦!'
)
messageTool
.
notifyWarning
(
'请输入消息后再发送哦!'
)
message
.
value
=
''
return
return
}
}
// 2. 组织发送消息
// 2. 组织发送消息
...
...
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