lcw
This commit is contained in:
@ -160,7 +160,7 @@ const handleNum = (val) => {
|
||||
};
|
||||
|
||||
watch(() => props.modelValue, (newVal) => {
|
||||
listQuery.value = newVal; //赋值
|
||||
listQuery.value = newVal || {}; //赋值,确保 newVal 为 undefined 时设置为空对象
|
||||
}, { immediate: true, deep: true });
|
||||
|
||||
watch(() => listQuery.value, (newVal) => {
|
||||
|
||||
Reference in New Issue
Block a user