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
e00f7a65
authored
Nov 05, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
054ffe24
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
store/index.ts
store/index.ts
View file @
e00f7a65
...
@@ -760,7 +760,8 @@ export default {
...
@@ -760,7 +760,8 @@ export default {
await
getChatModelInfo
(
await
getChatModelInfo
(
wantedChatRoom
.
model_name
,
wantedChatRoom
.
model_name
,
wantedChatRoom
.
obj_id
wantedChatRoom
.
obj_id
,
wantedChatRoom
.
detail_name
)
)
.
then
((
info
)
=>
{
.
then
((
info
)
=>
{
commit
(
commit
(
...
@@ -858,7 +859,11 @@ export default {
...
@@ -858,7 +859,11 @@ export default {
await
dispatch
(
ChatStore
.
ACTION_GET_MY_CHAT_LIST
);
await
dispatch
(
ChatStore
.
ACTION_GET_MY_CHAT_LIST
);
const
firstChat
=
state
[
ChatStore
.
STATE_MY_CHAT_ROOM_LIST
]?.
list
[
0
];
const
firstChat
=
state
[
ChatStore
.
STATE_MY_CHAT_ROOM_LIST
]?.
list
[
0
];
if
(
firstChat
==
null
)
return
;
if
(
firstChat
==
null
)
return
;
await
getChatModelInfo
(
firstChat
.
model_name
,
firstChat
.
obj_id
);
await
getChatModelInfo
(
firstChat
.
model_name
,
firstChat
.
obj_id
,
firstChat
.
detail_name
);
await
dispatch
(
await
dispatch
(
ChatStore
.
ACTION_SAVE_CURRENT_CHAT_ID_VERSION
,
ChatStore
.
ACTION_SAVE_CURRENT_CHAT_ID_VERSION
,
firstChat
.
chat_id
firstChat
.
chat_id
...
...
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