Commit 36b88895 authored by zhanglw's avatar zhanglw

调整

parent c0c80c5b
......@@ -324,12 +324,16 @@ export default {
this.fileSocketTimer = setInterval(() => {
this.reconnect();
}, 15000);
this.$refs.ExcelSpreadSheet.DataSource=[]
this.$nextTick(() => {
if (this.$refs.ExcelSpreadSheet.DataSource) {
this.$refs.ExcelSpreadSheet.DataSource = []
}
HttpReq.truckDispatching.downloadExcelOrFbx({url: item.url, type: this.query.type}).then((res) => {
this.blobToArrayBuffer(res).then(arrayBuffer => {
this.$refs.ExcelSpreadSheet.loadExcelFileStream(arrayBuffer)
})
})
})
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment