修改eventBUs调用多次的问题

This commit is contained in:
qq787203167
2022-06-29 09:42:25 +08:00
parent 41485cc394
commit 209e02538d
8 changed files with 30 additions and 1 deletions
@@ -124,6 +124,10 @@
this.getData()
this.getTableList()
},
beforeDestroy(){
eventBUs.$off('searchQuery')
eventBUs.$off('searchReset')
},
methods: {
getTextWith(text, fontStyle) {
@@ -132,6 +132,10 @@
this.getTableList()
this.userData = this.userInfo()
},
beforeDestroy(){
eventBUs.$off('searchQuery')
eventBUs.$off('searchReset')
},
methods: {
...mapGetters(['userInfo']),
urlClick(text, record) {