优化
This commit is contained in:
parent
4ee72425d7
commit
9e20a90811
@ -24,7 +24,7 @@ import tryAuthority from './authority'
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
activeIndex: '0'
|
||||
activeIndex: this.$route.query.activeIndex || '0'
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@ -34,17 +34,19 @@ export default {
|
||||
created () {
|
||||
if (this.auth.evaluationSet) {
|
||||
this.activeIndex = '0'
|
||||
} else if (this.auth.roleSet) {
|
||||
} else if (!this.auth.roleSet) {
|
||||
this.activeIndex = '1'
|
||||
} else {
|
||||
this.activeIndex = ''
|
||||
}
|
||||
if (this.auth.evaluationSet && this.auth.roleSet) this.activeIndex = this.$route.query.activeIndex
|
||||
},
|
||||
beforeMount () { },
|
||||
mounted () { },
|
||||
methods: {
|
||||
handleSelect (key, keyPath) {
|
||||
this.activeIndex = key
|
||||
this.$router.replace({name: 'set', query: {activeIndex: key}})
|
||||
}
|
||||
},
|
||||
watch: {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user