wansfa 1 year ago
parent
commit
7934347b83

+ 1 - 1
src/components/LemonUI/components/chatmsg.vue

@@ -926,7 +926,7 @@ export default {
     initContacts(data) {
       this.contacts = data;
       this.sortContacts();
-      if(!!this.contacts>0){
+      if(this.contacts.length>0){
           this.currentNewContactId=(this.contacts[0]).id;
       }
     },

+ 1 - 1
src/components/LemonUI/components/index.vue

@@ -915,7 +915,7 @@ export default {
     initContacts(data) {
       this.contacts = data;
       this.sortContacts();
-      if(!!this.contacts>0){
+      if(this.contacts.length>0){
           this.currentNewContactId=(this.contacts[0]).id;
       }
     },

+ 1 - 1
src/components/LemonUI/components/records.vue

@@ -921,7 +921,7 @@ export default {
     initContacts(data) {
       this.contacts = data;
       this.sortContacts();
-      if(!!this.contacts>0){
+      if(this.contacts.length>0){
           this.currentNewContactId=(this.contacts[0]).id;
       }
     },

+ 1 - 1
src/views/qw/qwLogin/index.vue

@@ -112,7 +112,7 @@ export default {
                           this.showQRCode = !!this.deviceId; // 根据 deviceId 控制是否显示二维码
                           this.initSocket(this.deviceId);
                           if (this.showQRCode) {
-                                this.getQrCode();
+                               this.getQrCode();
                           }else{
                               // deviceId 为空时显示错误提示
                               this.errorMessage = '请检查账号是否正确或是否审核通过';