用户的本地备注信息,暂时不链接网络

This commit is contained in:
2022-02-25 12:05:48 +08:00
parent 2a1590172e
commit ab3d5933a8
9 changed files with 87 additions and 26 deletions

View File

@@ -22,8 +22,8 @@ const initIm = (KEY) => {
if (store.getters.getToken !== '') {
getImToken().then(res => {
connect(res.token, res.userInfo, (res) => {
console.log('IM.CONNECT', res);
// 发布全局事件,有新消息,刷新会话列表
console.log('IM.CONNECT', res);
// 发布全局事件,有新消息,刷新会话列表
uni.$emit('onReceiveMessage')
})
})
@@ -85,7 +85,7 @@ const connect = (token, userInfo, callback) => {
contacts.map(item => {
store.dispatch('initContact', item)
})
})
})
uni.setStorageSync(FK, userInfo.targetId)
})
}

View File

@@ -8,7 +8,8 @@ const contactModel = usqlite.model('contacts', {
primaryKey: true,
unique: true
},
name: String,
name: String,
remark: String,
hash: {
type: String,
unique: true