Browse Source

perf: 优化字典数组条件判断

master
insistence 3 months ago
parent
commit
564d470240
  1. 2
      ruoyi-fastapi-frontend/src/components/DictTag/index.vue

2
ruoyi-fastapi-frontend/src/components/DictTag/index.vue

@ -55,7 +55,7 @@ const values = computed(() => {
const unmatch = computed(() => {
unmatchArray.value = [];
// value
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
//
let unmatch = false //
values.value.forEach(item => {

Loading…
Cancel
Save