NEZ-602 perf: 向导大部分内容
This commit is contained in:
@@ -158,26 +158,18 @@ export default {
|
||||
this.rightBox.show = true
|
||||
}
|
||||
})
|
||||
},
|
||||
initEvent () {
|
||||
bus.$on('alert-rule-list-change', () => {
|
||||
this.getTableData()
|
||||
})
|
||||
bus.$on('dc-list-change', () => {
|
||||
this.getTableData()
|
||||
})
|
||||
bus.$on('alert-message-change', () => {
|
||||
this.getTableData()
|
||||
})
|
||||
}
|
||||
},
|
||||
beforeDestroy () {
|
||||
bus.$off('alert-rule-list-change')
|
||||
bus.$off('dc-list-change')
|
||||
bus.$off('alert-message-change')
|
||||
},
|
||||
mounted () {
|
||||
this.initEvent()
|
||||
|
||||
// 是否弹出侧滑
|
||||
const add = this.$route.query.add
|
||||
if (add) {
|
||||
if (add === 'alertRule') {
|
||||
this.add()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user