Browse Source

fix: 修复vue/return-in-computed-property报错

黄兆琦 11 months ago
parent
commit
c015b2e881
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/DictTag/src/DictTag.vue

+ 1 - 0
src/components/DictTag/src/DictTag.vue

@@ -31,6 +31,7 @@ export default defineComponent({
       else if (isArray(props.value)) {
         return props.value.map(String)
       }
+      return []
     })
     const rederDictTag = () => {
       if (!props.type) {