Commit 64c2972a by 杨铁龙

Merge commit '61d21ee3'

parents 2df13585 61d21ee3
Showing with 5 additions and 2 deletions
......@@ -83,7 +83,10 @@ export interface ChatOption {
avatar?: string;
disabledDbIndex?:boolean;
/**
* 禁用IndexDb
*/
disabledIndexDb?:boolean;
}
export interface ChatMessageController {
......
......@@ -58,7 +58,7 @@ class Chat {
option.message && (this.messageController = option.message);
option.avatar !== undefined && (this.defaultAvatar = option.avatar);
if(!option.disabledDbIndex){
if(!option.disabledIndexDb){
await this.setupIndexDb(option.orgId()).catch(err => {
// 必须catch error不然小程序不会向后运行
console.error("setupIndexDb Error")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment