mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-23 13:31:06 +08:00
fix(select): print useless content in console in multiple select mode
This commit is contained in:
parent
bf8184904d
commit
674688e24e
@ -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
|
||||
|
@ -1,5 +1,11 @@
|
||||
# CHANGELOG
|
||||
|
||||
## NEXT_VERSION
|
||||
|
||||
### Fixes
|
||||
|
||||
- 修复 `n-select` 在多选模式下会在控制台打印无用内容
|
||||
|
||||
## 2.34.0
|
||||
|
||||
### Breaking Changes
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user