From 1bc227d890d18dee29bbabba08584b9275288b61 Mon Sep 17 00:00:00 2001 From: Justineo Date: Thu, 4 Nov 2021 21:11:45 +0800 Subject: [PATCH] fix: items should have default value for toc --- components/OneToc.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/OneToc.vue b/components/OneToc.vue index 397b234..26df236 100644 --- a/components/OneToc.vue +++ b/components/OneToc.vue @@ -19,7 +19,10 @@ export default { 'veui-anchor': Anchor }, props: { - items: Array + items: { + type: Array, + default: () => [] + } }, computed: { flattenItems () {