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
ea4b527c
authored
Jul 20, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
补充类型
parent
24e75f0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
store/index.ts
store/index.ts
View file @
ea4b527c
import
{
RootStoreState
}
from
"@/store/model"
;
import
{
Index
}
from
"uniplat-sdk"
;
import
{
Module
}
from
"vuex"
;
import
{
ChatMember
}
from
"../model"
;
...
...
@@ -21,10 +22,10 @@ const UniplatChatModelName = "UniplatChat";
const
model
=
()
=>
sdk
().
model
(
UniplatChatModelName
);
const
orgId
=
Chat
.
getOrgId
;
const
getMyinfo
=
(
function
()
{
let
data
;
let
data
:
Index
.
getUserInfo
;
return
async
()
=>
{
if
(
data
!=
null
)
return
data
;
data
=
sdk
().
getUserInfo
();
data
=
await
sdk
().
getUserInfo
();
return
data
;
};
})();
...
...
@@ -407,10 +408,7 @@ export default {
{
state
,
commit
,
dispatch
},
params
:
Parameters
<
ChatStore
.
ACTION_CREATE_NEW_CHAT_BY_SERVICE_MAN
>
[
0
]
)
{
const
myId
=
(
await
getMyinfo
()).
id
;
const
{
id
}
=
await
sdk
().
model
(
params
.
modelName
).
createChat
({
orgId
:
orgId
(),
uid
:
myId
,
detailId
:
+
params
.
selectedListId
});
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
500
));
...
...
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