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
No known key found for this signature in database
GPG Key ID: B73F0979CF18A0EA

View File

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