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
bf753854
authored
Dec 07, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://gitlab.corp.qinqinxiaobao.com:9880/uniplat/customer-service
parents
78e1c538
90e8aeb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
store/index.ts
store/index.ts
View file @
bf753854
...
@@ -84,11 +84,16 @@ async function preCacheImgs(msgs?: any[]) {
...
@@ -84,11 +84,16 @@ async function preCacheImgs(msgs?: any[]) {
}
}
function
buildChatItem
(
chat
:
RawChatItem
)
{
function
buildChatItem
(
chat
:
RawChatItem
)
{
if
(
!
chat
.
model_name
&&
chat
.
business_data
)
{
if
(
(
!
chat
.
model_name
||
!
chat
.
obj_id
)
&&
chat
.
business_data
)
{
const
b
=
JSON
.
parse
(
chat
.
business_data
)
as
BaseChatItemBusinessData
;
const
b
=
JSON
.
parse
(
chat
.
business_data
)
as
BaseChatItemBusinessData
;
chat
.
model_name
=
b
.
model_name
;
chat
.
model_name
=
b
.
model_name
;
b
.
obj_id
&&
(
chat
.
obj_id
=
b
.
obj_id
);
b
.
obj_id
&&
(
chat
.
obj_id
=
b
.
obj_id
);
}
}
if
(
!
chat
.
detail_name
&&
chat
.
business_data
)
{
const
b
=
JSON
.
parse
(
chat
.
business_data
)
as
BaseChatItemBusinessData
;
b
.
detail_name
&&
(
chat
.
detail_name
=
b
.
detail_name
);
}
return
{
...
chat
,
chat_id
:
chat
.
id
}
as
ChatType
;
return
{
...
chat
,
chat_id
:
chat
.
id
}
as
ChatType
;
}
}
...
...
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