Commit 4ea78c2f by liimin

1

1 parent f007c78c
...@@ -57,13 +57,11 @@ export default { ...@@ -57,13 +57,11 @@ export default {
const { lv1, lv2, lv3, lv4 } = this.current const { lv1, lv2, lv3, lv4 } = this.current
const lv3id = `${lv1}-${lv2}-${lv3}` const lv3id = `${lv1}-${lv2}-${lv3}`
const lv4id = `${lv3id}-${lv4}` const lv4id = `${lv3id}-${lv4}`
const sub = this.find(lv3id)?.children const sub = this.find(lv3id)?.children || []
if (sub?.length) {
const nav4 = sub.noHidden() const nav4 = sub.noHidden()
this.setActive(lv4id, nav4) this.setActive(lv4id, nav4)
} }
} }
}
} }
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!