@@ -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;
}
},
@@ -915,7 +915,7 @@ export default {
@@ -921,7 +921,7 @@ export default {
@@ -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 = '请检查账号是否正确或是否审核通过';