tree样式和多tab页面跳转问题

This commit is contained in:
2023-02-07 15:29:23 +08:00
parent af0c631800
commit a85c385180
9 changed files with 72 additions and 9 deletions

View File

@@ -24,12 +24,19 @@ export default {
}
},
mounted() {
this.activeName = this.$router.history.current.name
this.activeName = this.$route.name
},
methods: {
handleSelect(name) {
this.$router.push({ name: name })
}
},
watch: {
$route: {
handler: function (val) {
this.activeName = val.name
}
}
}
}
</script>