Commit 61d21ee3 by 杨铁龙

disabledIndexDb

parent 42b99d0f
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