We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a193744 commit 564d470Copy full SHA for 564d470
ruoyi-fastapi-frontend/src/components/DictTag/index.vue
@@ -55,7 +55,7 @@ const values = computed(() => {
55
const unmatch = computed(() => {
56
unmatchArray.value = [];
57
// 没有value不显示
58
- if (props.value === null || typeof props.value === 'undefined' || props.value === '' || props.options.length === 0) return false
+ if (props.value === null || typeof props.value === 'undefined' || props.value === '' || !Array.isArray(props.options) || props.options.length === 0) return false
59
// 传入值为数组
60
let unmatch = false // 添加一个标志来判断是否有未匹配项
61
values.value.forEach(item => {
0 commit comments