diff --git a/src/uni_modules/wot-design-uni/components/wd-input/wd-input.vue b/src/uni_modules/wot-design-uni/components/wd-input/wd-input.vue index 0a3056003..d77e9b7af 100644 --- a/src/uni_modules/wot-design-uni/components/wd-input/wd-input.vue +++ b/src/uni_modules/wot-design-uni/components/wd-input/wd-input.vue @@ -126,11 +126,7 @@ watch( watch( () => props.modelValue, (newValue) => { - if (newValue === undefined) { - newValue = '' - console.warn('[wot-design] warning(wd-input): value can not be undefined.') - } - inputValue.value = newValue + inputValue.value = isDef(newValue) ? String(newValue) : '' }, { immediate: true, deep: true } )