🐛(component): 修复datePicker 改变modelValue后视图不更新问题
This commit is contained in:
		
							parent
							
								
									a2967fb2cb
								
							
						
					
					
						commit
						0c0ea1cc2c
					
				| @ -353,6 +353,7 @@ onMounted(() => { | |||||||
| 
 | 
 | ||||||
| // 计算结果日期 | // 计算结果日期 | ||||||
| const dateValue = computed<string>(() => { | const dateValue = computed<string>(() => { | ||||||
|  |   currentDay.value = new Date(props.modelValue).getTime(); | ||||||
|   if (currentDay.value === -1) { |   if (currentDay.value === -1) { | ||||||
|     $emits("update:modelValue", ""); |     $emits("update:modelValue", ""); | ||||||
|     return ""; |     return ""; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user