update
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lemon-imui",
|
"name": "lemon-imui",
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"main": "dist/index.umd.min.js",
|
"main": "dist/index.umd.min.js",
|
||||||
"description": "基于 VUE2.0 的 IM 聊天组件",
|
"description": "基于 VUE2.0 的 IM 聊天组件",
|
||||||
"homepage": "https://github.com/fanjyy/lemon-imui",
|
"homepage": "https://github.com/fanjyy/lemon-imui",
|
||||||
|
|||||||
@@ -535,10 +535,10 @@ export default {
|
|||||||
* @param contactId 联系人 id
|
* @param contactId 联系人 id
|
||||||
*/
|
*/
|
||||||
async changeContact(contactId, menuName) {
|
async changeContact(contactId, menuName) {
|
||||||
if(this._changeContactLock || this.currentContactId == contactId) return false;
|
if(menuName){
|
||||||
|
|
||||||
if (menuName) {
|
|
||||||
this.changeMenu(menuName);
|
this.changeMenu(menuName);
|
||||||
|
}else{
|
||||||
|
if(this._changeContactLock || this.currentContactId == contactId) return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.currentContactId = contactId;
|
this.currentContactId = contactId;
|
||||||
@@ -616,6 +616,7 @@ export default {
|
|||||||
* @param {String} name 按钮 name
|
* @param {String} name 按钮 name
|
||||||
*/
|
*/
|
||||||
changeMenu(name) {
|
changeMenu(name) {
|
||||||
|
if(this._changeContactLock) return false;
|
||||||
this.$emit("change-menu", name);
|
this.$emit("change-menu", name);
|
||||||
this.activeSidebar = name;
|
this.activeSidebar = name;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -89,9 +89,6 @@ export default {
|
|||||||
_renderLoadEnd() {
|
_renderLoadEnd() {
|
||||||
return <span>暂无更多消息</span>;
|
return <span>暂无更多消息</span>;
|
||||||
},
|
},
|
||||||
isLoading(){
|
|
||||||
return this._loadend == false;
|
|
||||||
},
|
|
||||||
loaded() {
|
loaded() {
|
||||||
this._loadend = true;
|
this._loadend = true;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user