Skip to content

Commit cae70e5

Browse files
committed
fix busClose
1 parent b51abe5 commit cae70e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

resources/js/components/widgets/Actions/ActionButton.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ export default {
7979
};
8080
},
8181
mounted () {
82-
this.$bus.on(this.attrs.busClose, data => {
82+
this.$bus.on(this.action.busClose, data => {
8383
this.dialogTableVisible = false;
8484
});
8585
},
8686
destroyed () {
87-
this.$bus.off(this.attrs.busClose);
87+
this.$bus.off(this.action.busClose);
8888
},
8989
methods: {
9090
onClick () {

resources/js/components/widgets/BatchActions/BatchAction.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ export default {
4040
};
4141
},
4242
mounted() {
43-
this.$bus.on(this.attrs.busClose, data => {
43+
this.$bus.on(this.action.busClose, data => {
4444
this.dialogTableVisible = false;
4545
});
4646
},
4747
destroyed() {
48-
this.$bus.off(this.attrs.busClose);
48+
this.$bus.off(this.action.busClose);
4949
},
5050
methods: {
5151
onClick() {

0 commit comments

Comments
 (0)