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
a08b2362
authored
Sep 10, 2021
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
客户端打开会话后刷新消息列表
parent
a2b13d43
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
store/index.ts
store/index.ts
View file @
a08b2362
...
...
@@ -312,7 +312,7 @@ export default {
[
ChatStore
.
MUTATION_CHAT_UPDATE_USER_TYPE
]:
(
state
,
v
:
string
)
=>
{
state
[
ChatStore
.
STATE_CHAT_CURRENT_USER_TYPE
]
=
v
;
},
[
ChatStore
.
MUTATION_SAVE_USERNAME
]:
(
state
,
param
:
{
id
:
string
,
name
:
string
})
=>
{
[
ChatStore
.
MUTATION_SAVE_USERNAME
]:
(
state
,
param
:
{
id
:
string
,
name
:
string
})
=>
{
Vue
.
set
(
state
[
ChatStore
.
STATE_CHAT_USERNAME
],
param
.
id
,
param
.
name
);
},
},
...
...
@@ -461,6 +461,8 @@ export default {
const
chatId
=
Number
(
imChatId
);
await
commit
(
ChatStore
.
MUTATION_SHOW_CHAT
,
true
);
await
dispatch
(
ChatStore
.
ACTION_SAVE_CURRENT_CHAT_ID_VERSION
,
chatId
);
// 打开会话后获取一下会话列表,刷新未读消息
dispatch
(
ChatStore
.
ACTION_GET_MY_CHAT_LIST
);
},
async
[
ChatStore
.
ACTION_REGISTER_EVENT
]({
dispatch
,
commit
,
state
})
{
const
onNewMsg
=
(
e
:
Message
)
=>
{
...
...
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