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
19f15b59
authored
Sep 29, 2021
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:发送消息控制台报错
parent
360546b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
store/index.ts
store/index.ts
View file @
19f15b59
...
@@ -40,7 +40,10 @@ function filterMessages(
...
@@ -40,7 +40,10 @@ function filterMessages(
const
removeRegisterChatEvents
:
(()
=>
void
)[]
=
[];
const
removeRegisterChatEvents
:
(()
=>
void
)[]
=
[];
async
function
preCacheImgs
(
msgs
:
any
[])
{
async
function
preCacheImgs
(
msgs
?:
any
[])
{
if
(
!
msgs
)
{
return
Promise
.
resolve
();
}
await
Promise
.
all
(
await
Promise
.
all
(
msgs
.
map
((
k
)
=>
{
msgs
.
map
((
k
)
=>
{
return
new
Promise
((
resolve
:
(
p
:
void
)
=>
void
)
=>
{
return
new
Promise
((
resolve
:
(
p
:
void
)
=>
void
)
=>
{
...
@@ -320,11 +323,10 @@ export default {
...
@@ -320,11 +323,10 @@ export default {
async
[
ChatStore
.
ACTION_GET_MY_CHAT_LIST
]({
async
[
ChatStore
.
ACTION_GET_MY_CHAT_LIST
]({
state
,
state
,
commit
,
commit
,
})
/* ...params: Parameters<ChatStore.ACTION_GET_MY_CHAT_LIST> */
{
})
{
const
data
=
await
xim
.
fetchChatList
();
const
data
=
await
xim
.
fetchChatList
();
if
(
data
==
null
)
return
;
if
(
data
==
null
)
return
;
const
chatList
=
data
.
args
[
0
];
const
chatList
=
data
.
args
[
0
];
console
.
log
(
"chatList:"
,
chatList
);
commit
(
ChatStore
.
MUTATION_SAVE_CHAT_LIST
,
{
commit
(
ChatStore
.
MUTATION_SAVE_CHAT_LIST
,
{
list
:
chatList
.
map
((
chat
:
any
)
=>
{
list
:
chatList
.
map
((
chat
:
any
)
=>
{
let
business_data
;
let
business_data
;
...
...
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