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 {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
activeName: this.activeMenu,
|
|
||||||
validActions: Object.assign(defaultActions, this.actions)
|
validActions: Object.assign(defaultActions, this.actions)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -105,6 +104,14 @@ export default {
|
|||||||
},
|
},
|
||||||
validTitle() {
|
validTitle() {
|
||||||
return this.title || this.getTitle(this.object)
|
return this.title || this.getTitle(this.object)
|
||||||
|
},
|
||||||
|
activeName: {
|
||||||
|
get() {
|
||||||
|
return this.activeMenu
|
||||||
|
},
|
||||||
|
set(item) {
|
||||||
|
this.activeName = item
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
@@ -35,9 +35,14 @@ export default {
|
|||||||
required: true
|
required: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
computed: {
|
||||||
return {
|
activeName: {
|
||||||
activeName: this.activeMenu
|
get() {
|
||||||
|
return this.activeMenu
|
||||||
|
},
|
||||||
|
set(item) {
|
||||||
|
this.activeName = item
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Reference in New Issue
Block a user