feat:使用向导完善
This commit is contained in:
@@ -162,11 +162,17 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
// 是否弹出侧滑
|
||||
const add = this.$route.query.add
|
||||
if (add) {
|
||||
if (add === 'alertRule') {
|
||||
this.add()
|
||||
},
|
||||
watch: {
|
||||
$route: {
|
||||
immediate: true,
|
||||
handler () {
|
||||
const add = this.$route.query.add
|
||||
if (add) {
|
||||
if (add === 'alertRule') {
|
||||
this.add()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user