修复DictTag错误

This commit is contained in:
数据小王子 2024-03-05 16:39:19 +08:00
parent 7fb42fd344
commit ce275d9590

View File

@ -50,12 +50,13 @@ const values = computed(() => {
const unmatch = computed(() => {
if (props.options?.length == 0 || props.value === '' || props.value === null || typeof props.value === 'undefined') return false;
//
let unmatch = false; //
values.value.forEach((item) => {
if (!props.options.some((v) => v.value === item)) {
return true; // true
unmatch = true; // true
}
});
return false; //
return unmatch; //
});
const unmatchArray = computed(() => {