mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 14:25:23 +00:00
[Bugfix] 修复tab返回时无法选中的问题
This commit is contained in:
@@ -82,7 +82,6 @@ export default {
|
||||
}
|
||||
return {
|
||||
loading: true,
|
||||
activeName: this.activeMenu,
|
||||
validActions: Object.assign(defaultActions, this.actions)
|
||||
}
|
||||
},
|
||||
@@ -105,6 +104,14 @@ export default {
|
||||
},
|
||||
validTitle() {
|
||||
return this.title || this.getTitle(this.object)
|
||||
},
|
||||
activeName: {
|
||||
get() {
|
||||
return this.activeMenu
|
||||
},
|
||||
set(item) {
|
||||
this.activeName = item
|
||||
}
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
|
@@ -35,9 +35,14 @@ export default {
|
||||
required: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
activeName: this.activeMenu
|
||||
computed: {
|
||||
activeName: {
|
||||
get() {
|
||||
return this.activeMenu
|
||||
},
|
||||
set(item) {
|
||||
this.activeName = item
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
Reference in New Issue
Block a user