diff --git a/src/components/scExport/index.vue b/src/components/scExport/index.vue index 6c1a380..ec832da 100644 --- a/src/components/scExport/index.vue +++ b/src/components/scExport/index.vue @@ -44,7 +44,7 @@ export default { }, mounted() { // 获取新消息 - this.$socketApi.getSock(this.getWsResult); + // this.$socketApi.getSock(this.getWsResult); }, methods:{ getWsResult(res){ @@ -82,6 +82,8 @@ export default { }, exportClick(){ this.$emit('exportData'); + // 获取新消息 + this.$socketApi.getSock(this.getWsResult); }, } }