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
328ddbcd
authored
Aug 07, 2021
by
吴云建
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
81d6a8d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
store/index.ts
store/index.ts
View file @
328ddbcd
...
@@ -50,7 +50,7 @@ async function preCacheImgs(msgs: any[]) {
...
@@ -50,7 +50,7 @@ async function preCacheImgs(msgs: any[]) {
if
(
!
isAccessibleUrl
(
url
))
{
if
(
!
isAccessibleUrl
(
url
))
{
resolve
();
resolve
();
}
}
if
(
url
&&
isAccessibleUrl
(
url
))
{
if
(
url
&&
isAccessibleUrl
(
url
)
&&
typeof
Image
!==
"undefined"
)
{
const
preCache
=
new
Image
();
const
preCache
=
new
Image
();
preCache
.
src
=
url
;
preCache
.
src
=
url
;
preCache
.
onload
=
()
=>
resolve
();
preCache
.
onload
=
()
=>
resolve
();
...
@@ -270,11 +270,11 @@ export default {
...
@@ -270,11 +270,11 @@ export default {
const
eid
=
payload
.
eid
;
const
eid
=
payload
.
eid
;
if
(
eid
===
state
[
ChatStore
.
STATE_CHAT_MY_ID
])
return
;
if
(
eid
===
state
[
ChatStore
.
STATE_CHAT_MY_ID
])
return
;
if
(
arr
.
includes
(
eid
))
{
if
(
arr
.
includes
(
eid
))
{
window
.
clearTimeout
(
setTimeoutId
[
eid
]);
clearTimeout
(
setTimeoutId
[
eid
]);
}
else
{
}
else
{
arr
.
push
(
eid
);
arr
.
push
(
eid
);
}
}
setTimeoutId
[
eid
]
=
window
.
setTimeout
(()
=>
{
setTimeoutId
[
eid
]
=
setTimeout
(()
=>
{
arr
.
splice
(
arr
.
indexOf
(
eid
),
1
);
arr
.
splice
(
arr
.
indexOf
(
eid
),
1
);
},
4000
);
},
4000
);
};
};
...
...
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