tab路由页面刷新active的问题

This commit is contained in:
2023-01-11 16:32:26 +08:00
parent 703813eafd
commit af0c631800
7 changed files with 23 additions and 9 deletions

View File

@@ -20,10 +20,12 @@ export default {
name: 'ProcessFullInspection',
data() {
return {
activeName: 'fullInspection'
activeName: ''
}
},
mounted() {},
mounted() {
this.activeName = this.$router.history.current.name
},
methods: {
handleSelect(name) {
this.$router.push({ name: name })