feat: 修改多次绑定on事件
This commit is contained in:
@@ -84,6 +84,12 @@ const myDialogRef = ref(null)
|
||||
const ruleFormRef = ref(null)
|
||||
onMounted(() => {
|
||||
getList()
|
||||
eventBus.on('search', (res) => {
|
||||
getList(res)
|
||||
})
|
||||
})
|
||||
onBeforeUnmount(() => {
|
||||
eventBus.off('search')
|
||||
})
|
||||
eventBus.on('search', (res) => {
|
||||
getList(res)
|
||||
|
||||
Reference in New Issue
Block a user