fix() 如果点击规则维护页面,不让他报错

chao
chao 2024-05-05 15:15:31 +08:00
parent a7df48335a
commit 603c935ff7
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ export default {
}, 50)
},
getInfo() {
if (this.$route.query.id === undefined) {
this.$router.push({path: this.path})
return
}
getEngine(this.$route.query.id).then(res => {
this.ruleEngineInfo = res.data
console.log(this.ruleEngineInfo)