fix: items should have default value for toc

This commit is contained in:
Justineo
2021-11-04 21:11:45 +08:00
parent 88da3af22e
commit 1bc227d890

View File

@@ -19,7 +19,10 @@ export default {
'veui-anchor': Anchor
},
props: {
items: Array
items: {
type: Array,
default: () => []
}
},
computed: {
flattenItems () {