diff --git a/src/views/components/WarehouseWarning.vue b/src/views/components/WarehouseWarning.vue index 61bd66a..d283cc0 100644 --- a/src/views/components/WarehouseWarning.vue +++ b/src/views/components/WarehouseWarning.vue @@ -70,8 +70,11 @@ export default { // this.tableData.push(...data) // }) // this.openSocket() + console.log(111111) alarmApi.info({ storeroomId: this.storeroomId }).then((data) => { - this.tableData.push(...data) + if (data && data.length > 0) { + this.tableData.push(...data) + } }) }, destroyed() { diff --git a/src/views/storeManage/warehouse3D/archivesStorage/index.vue b/src/views/storeManage/warehouse3D/archivesStorage/index.vue index 60537dd..a33fdf8 100644 --- a/src/views/storeManage/warehouse3D/archivesStorage/index.vue +++ b/src/views/storeManage/warehouse3D/archivesStorage/index.vue @@ -61,7 +61,7 @@