Skip to content

Commit 2fa4f01

Browse files
committed
Fix: select option not available after close the board
1 parent c522697 commit 2fa4f01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/BotUI.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ export default {
135135
this.botToggle()
136136
}
137137
}
138-
139-
EventBus.$on('select-button-option', this.selectOption)
140138
},
141139
142140
beforeDestroy () {
@@ -154,6 +152,7 @@ export default {
154152
this.botActive = !this.botActive
155153
156154
if (this.botActive) {
155+
EventBus.$on('select-button-option', this.selectOption)
157156
this.$emit('init')
158157
} else {
159158
EventBus.$off('select-button-option')

0 commit comments

Comments
 (0)