优化菜单的展示逻辑,增加外链的展示
This commit is contained in:
@@ -166,8 +166,12 @@ export default {
|
||||
}
|
||||
const on = {
|
||||
select: obj => {
|
||||
if(obj.key.indexOf('http://')>-1) {
|
||||
window.open(obj.key)
|
||||
} else {
|
||||
this.selectedKeys = obj.selectedKeys
|
||||
this.$emit('select', obj)
|
||||
}
|
||||
},
|
||||
openChange: this.onOpenChange
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user