|
@@ -74,11 +74,7 @@ getData()
|
|
|
|
|
|
/* 修改modelValue */
|
|
|
const updateModelValue = (modelValue: any) => {
|
|
|
- let value = ''
|
|
|
- if (Array.isArray(modelValue)) {
|
|
|
- // 多选情况利用set去重
|
|
|
- value = [...new Set([...modelValue])].join(',')
|
|
|
- }
|
|
|
+ const value = Array.isArray(modelValue) ? [...new Set([...modelValue])].join(',') : modelValue
|
|
|
emits('update:modelValue', value)
|
|
|
}
|
|
|
|