修改导出接收消息方法

This commit is contained in:
龙运模
2024-07-18 21:21:29 +08:00
parent cedea73ca8
commit 8e059496a2
+3 -1
View File
@@ -44,7 +44,7 @@ export default {
}, },
mounted() { mounted() {
// 获取新消息 // 获取新消息
this.$socketApi.getSock(this.getWsResult); // this.$socketApi.getSock(this.getWsResult);
}, },
methods:{ methods:{
getWsResult(res){ getWsResult(res){
@@ -82,6 +82,8 @@ export default {
}, },
exportClick(){ exportClick(){
this.$emit('exportData'); this.$emit('exportData');
// 获取新消息
this.$socketApi.getSock(this.getWsResult);
}, },
} }
} }