线路:通用menuBar
问题:点击空白关闭多级菜单时,所有层级都关闭。
This commit is contained in:
parent
46d139e8a5
commit
faaded9b1e
@ -89,6 +89,13 @@ export default {
|
||||
'mode'
|
||||
])
|
||||
},
|
||||
watch: {
|
||||
index(val) {
|
||||
if (val == -1) {
|
||||
this.active = -1;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
getDomId(item) {
|
||||
if (item && item.operate) {
|
||||
@ -121,6 +128,7 @@ export default {
|
||||
type: 'bar',
|
||||
operation: item.operate.operation
|
||||
};
|
||||
|
||||
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||
if (valid) {
|
||||
this.$emit('active', index);
|
||||
|
Loading…
Reference in New Issue
Block a user