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
bd4fedae
authored
Aug 02, 2021
by
吴云建
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
阶段提交
parent
dcd1fd2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
store/index.ts
store/index.ts
View file @
bd4fedae
...
...
@@ -377,23 +377,20 @@ export default {
return
data
;
},
async
[
ChatStore
.
ACTION_SEND_MESSAGE
](
{
state
,
dispatch
},
{
state
,
dispatch
,
getters
},
params
:
Parameters
<
ChatStore
.
ACTION_SEND_MESSAGE
>
[
0
]
)
{
const
uniplatId
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_UNIPLAT_ID
];
if
(
uniplatId
==
null
)
return
;
try
{
const
data
=
await
model
()
.
action
(
"sendMsg"
)
.
updateInitialParams
({
selected_list
:
[{
v
:
0
,
id
:
Number
(
uniplatId
)
}],
})
.
addInputs_parameter
({
LastMsgType
:
params
.
msgType
,
LastMsgContent
:
params
.
msg
,
})
.
dryExecute
();
const
{
business_data
}
=
getters
[
ChatStore
.
GETTER_CURRENT_CURRENT_CHAT
];
const
data
=
await
sdk
()
.
model
(
business_data
.
model_name
)
.
chat
(
Number
(
business_data
.
obj_id
),
orgId
())
.
sendMsg
(
params
.
msgType
,
params
.
msg
);
await
dispatch
(
ChatStore
.
ACTION_GET_FRESH_MESSAGE
);
return
data
;
}
catch
(
error
)
{
...
...
@@ -616,7 +613,6 @@ export default {
{
getters
,
dispatch
},
uids
:
Parameters
<
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
>
[
0
]
)
{
console
.
log
(
"====123"
)
const
currentChat
=
getters
[
ChatStore
.
GETTER_CURRENT_CURRENT_CHAT
];
console
.
log
(
currentChat
)
if
(
currentChat
==
null
)
return
;
...
...
@@ -671,8 +667,6 @@ export default {
[
ChatStore
.
GETTER_CURRENT_CURRENT_CHAT
](
state
)
{
const
chatId
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
];
const
singleChat
=
state
[
ChatStore
.
STATE_SINGLE_CHAT
];
console
.
log
(
"singleChat:"
,
singleChat
)
console
.
log
(
"chatId"
,
chatId
)
if
(
singleChat
&&
singleChat
.
chat_id
==
chatId
)
{
return
singleChat
;
}
...
...
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