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
64c2972a
authored
Jan 13, 2022
by
杨铁龙
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge commit '
61d21ee3
'
parents
2df13585
61d21ee3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
model/index.ts
xim/index.ts
model/index.ts
View file @
64c2972a
...
@@ -83,7 +83,10 @@ export interface ChatOption {
...
@@ -83,7 +83,10 @@ export interface ChatOption {
avatar
?:
string
;
avatar
?:
string
;
disabledDbIndex
?:
boolean
;
/**
* 禁用IndexDb
*/
disabledIndexDb
?:
boolean
;
}
}
export
interface
ChatMessageController
{
export
interface
ChatMessageController
{
...
...
xim/index.ts
View file @
64c2972a
...
@@ -58,7 +58,7 @@ class Chat {
...
@@ -58,7 +58,7 @@ class Chat {
option
.
message
&&
(
this
.
messageController
=
option
.
message
);
option
.
message
&&
(
this
.
messageController
=
option
.
message
);
option
.
avatar
!==
undefined
&&
(
this
.
defaultAvatar
=
option
.
avatar
);
option
.
avatar
!==
undefined
&&
(
this
.
defaultAvatar
=
option
.
avatar
);
if
(
!
option
.
disabled
DbIndex
){
if
(
!
option
.
disabled
IndexDb
){
await
this
.
setupIndexDb
(
option
.
orgId
()).
catch
(
err
=>
{
await
this
.
setupIndexDb
(
option
.
orgId
()).
catch
(
err
=>
{
// 必须catch error不然小程序不会向后运行
// 必须catch error不然小程序不会向后运行
console
.
error
(
"setupIndexDb Error"
)
console
.
error
(
"setupIndexDb Error"
)
...
...
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