tree样式和多tab页面跳转问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user