CN-1641 fix: 修复Detections-polices侧边栏点击编辑无响应的问题

This commit is contained in:
刘洪洪
2024-04-28 09:55:40 +08:00
parent 894747ee6b
commit 657f5a000a

View File

@@ -229,12 +229,13 @@ export default {
},
onEdit () {
const pageNo = this.$router.currentRoute.value.query.pageNo
const ruleId = this.batchDeleteObjs[0] ? this.batchDeleteObjs[0].ruleId : this.drawerInfo.ruleId
this.$router.push({
path: '/detection/policy/edit',
query: {
t: +new Date(),
pageNoForTable: pageNo || 1,
id: this.batchDeleteObjs[0].ruleId,
id: ruleId,
name: this.$route.query.name || ''
}
})