Commit 2c19e310 by liimin

popover 会销毁再弹出 执行两次,所以当前有值的时候不更新

1 parent 079a113f
......@@ -63,13 +63,14 @@ export default {
this.reload()
return
}
// console.log('待修改:'+menus[0]?.title , '当前,'+this.menus[0]?.title);
if (this.menus[0]?.id == menus[0]?.id) return
// popover 会销毁再弹出 执行两次,所以当前有值的时候不更新
if ((this.menu.isCollapse && this.menus.length) || this.menus[0]?.id == menus[0]?.id) return
console.log('待修改:' + menus[0]?.title, '当前,' + this.menus[0]?.title)
this.menus = menus
// console.log(JSON.stringify(menus))
this.bus.$emit('menuOpenedsChanged', { menus })
},
reload() {
console.log('reload')
const { lv1 } = this.current
const [pid] = this.menus[0]?.id.split('-') || []
if (lv1 == pid) return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!