Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b96b4270
authored
Jan 04, 2022
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
交互优化
parent
9b069739
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
hybrid-input/index.vue
hybrid-input/index.vue
View file @
b96b4270
...
@@ -339,16 +339,20 @@
...
@@ -339,16 +339,20 @@
if
(
e
.
shiftKey
||
e
.
ctrlKey
||
e
.
altKey
)
{
if
(
e
.
shiftKey
||
e
.
ctrlKey
||
e
.
altKey
)
{
return
;
return
;
}
}
// 避免按一下enter键多次触发发送
if
(
this
.
reloadTimer
)
{
clearTimeout
(
this
.
reloadTimer
);
}
this
.
reloadTimer
=
setTimeout
(()
=>
{
const
data
=
this
.
getNodeListFromInputBox
();
const
data
=
this
.
getNodeListFromInputBox
();
this
.
$emit
(
"send"
,
data
);
this
.
$emit
(
"send"
,
data
);
this
.
clearInput
();
this
.
clearInput
();
if
(
this
.
chatId
)
{
if
(
this
.
chatId
)
{
chatCache
[
this
.
chatId
]
=
[];
chatCache
[
this
.
chatId
]
=
[];
}
}
if
(
this
.
reloadTimer
)
{
clearTimeout
(
this
.
reloadTimer
);
this
.
getMyChatList
();
}
},
120
);
this
.
reloadTimer
=
setTimeout
(()
=>
this
.
getMyChatList
(),
120
);
}
}
/**
/**
...
...
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