mdm-client 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -459,7 +459,7 @@ export default {
|
|
|
459
459
|
async getOrgTreeData() {
|
|
460
460
|
const res = await getAddressOrgTree({}, { baseUrl: this.baseUrl, token: this.token });
|
|
461
461
|
if(res.data?.code == 200) {
|
|
462
|
-
this.treeData = res.data.data;
|
|
462
|
+
this.treeData = res.data.data || [];
|
|
463
463
|
}
|
|
464
464
|
},
|
|
465
465
|
|
|
@@ -467,7 +467,7 @@ export default {
|
|
|
467
467
|
async getAppTreeData() {
|
|
468
468
|
const res = await getAddressAppTree({}, { baseUrl: this.baseUrl, token: this.token });
|
|
469
469
|
if(res.data?.code == 200) {
|
|
470
|
-
this.appTreeData = res.data.data;
|
|
470
|
+
this.appTreeData = res.data.data || [];
|
|
471
471
|
}
|
|
472
472
|
},
|
|
473
473
|
|
|
@@ -475,7 +475,7 @@ export default {
|
|
|
475
475
|
async getVolteTreeData() {
|
|
476
476
|
const res = await getVolteAddressBook({}, { baseUrl: this.baseUrl, token: this.token });
|
|
477
477
|
if(res.data?.code == 200) {
|
|
478
|
-
this.volteTreeData = res.data.data;
|
|
478
|
+
this.volteTreeData = res.data.data || [];
|
|
479
479
|
}
|
|
480
480
|
},
|
|
481
481
|
|
|
@@ -483,7 +483,7 @@ export default {
|
|
|
483
483
|
async getGroupTreeData() {
|
|
484
484
|
const res = await getCommonOrgTree({}, { baseUrl: this.baseUrl, token: this.token });
|
|
485
485
|
if(res.data?.code == 200) {
|
|
486
|
-
this.groupTreeData = res.data.data;
|
|
486
|
+
this.groupTreeData = res.data.data || [];
|
|
487
487
|
}
|
|
488
488
|
},
|
|
489
489
|
|
|
@@ -491,7 +491,7 @@ export default {
|
|
|
491
491
|
async getEquipmentTreeData() {
|
|
492
492
|
const res = await queryEquipmentAddressBook({}, { baseUrl: this.baseUrl, token: this.token });
|
|
493
493
|
if(res.data?.code == 200) {
|
|
494
|
-
this.equipmentTreeData = res.data.data;
|
|
494
|
+
this.equipmentTreeData = res.data.data || [];
|
|
495
495
|
}
|
|
496
496
|
},
|
|
497
497
|
|
|
@@ -499,7 +499,7 @@ export default {
|
|
|
499
499
|
async getMonitorTreeData() {
|
|
500
500
|
const res = await queryMonitorAddressBook({}, { baseUrl: this.baseUrl, token: this.token });
|
|
501
501
|
if(res.data?.code == 200) {
|
|
502
|
-
this.monitorTreeData = res.data.data;
|
|
502
|
+
this.monitorTreeData = res.data.data || [];
|
|
503
503
|
}
|
|
504
504
|
},
|
|
505
505
|
// 获取会议终端树数据
|