Commit 302a1f05 by liimin

优化逻辑

1 parent b19271e6
......@@ -77,8 +77,10 @@ export default {
},
reload() {
if (this.isPop) return
console.log('reload')
const { lv1 } = this.current
const [pid] = this.menus[0]?.id.split('-') || []
if (lv1 == pid) return
console.log('reload')
const menus = this.app.menuList.find(({ id }) => id == lv1).children.noHidden()
this.handleMenuChanged({ menus })
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!