fix(select): print useless content in console in multiple select mode

This commit is contained in:
07akioni 2022-11-21 20:11:53 +08:00
parent bf8184904d
commit 674688e24e
3 changed files with 12 additions and 1 deletions

View File

@ -1,5 +1,11 @@
# CHANGELOG
## NEXT_VERSION
### Fixes
- Fix `n-select` will print useless content in console in multiple select mode.
## 2.34.0
### Breaking Changes

View File

@ -1,5 +1,11 @@
# CHANGELOG
## NEXT_VERSION
### Fixes
- 修复 `n-select` 在多选模式下会在控制台打印无用内容
## 2.34.0
### Breaking Changes

View File

@ -374,7 +374,6 @@ export default defineComponent({
const selectedOptionsRef = computed(() => {
if (props.multiple) {
const { value: values } = mergedValueRef
console.log('values', values)
if (!Array.isArray(values)) return []
return getMergedOptions(values)
}