|
@@ -24,13 +24,19 @@ export default {
|
|
|
activeIndex: '1'
|
|
|
}
|
|
|
},
|
|
|
- mounted () {},
|
|
|
+ mounted () {
|
|
|
+ this.activeIndex = sessionStorage.getItem('tab') || '1'
|
|
|
+ },
|
|
|
methods: {
|
|
|
handleSelect (key, keyPath) {
|
|
|
if (key === '1' && this.$route.path !== '/devinfo') {
|
|
|
+ // sessionStorage.removeItem('tab')
|
|
|
+ sessionStorage.setItem('tab', '1')
|
|
|
this.$router.push({ path: '/devinfo' })
|
|
|
}
|
|
|
if (key === '2' && this.$route.path !== '/advancedConfig') {
|
|
|
+ // sessionStorage.removeItem('tab')
|
|
|
+ sessionStorage.setItem('tab', '2')
|
|
|
this.$router.push({ path: '/advancedConfig' })
|
|
|
}
|
|
|
}
|