mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-10 01:19:32 +00:00
【issues/8233】resetFields时无法重置
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
//下拉框选项值
|
||||
const selectOptions = ref<SelectValue>([]);
|
||||
//下拉框选中值
|
||||
let selectValues = reactive<object>({
|
||||
let selectValues = reactive<any>({
|
||||
value: [],
|
||||
change: false,
|
||||
});
|
||||
@@ -74,7 +74,15 @@
|
||||
watch(
|
||||
() => props.value,
|
||||
() => {
|
||||
props.value && initValue();
|
||||
if (props.value) {
|
||||
initValue();
|
||||
} else {
|
||||
// update-begin--author:liaozhiyang---date:20250604---for:【issues/8233】resetFields时无法重置
|
||||
if (selectValues.value?.length) {
|
||||
selectValues.value = [];
|
||||
}
|
||||
// update-end--author:liaozhiyang---date:20250604---for:【issues/8233】resetFields时无法重置
|
||||
}
|
||||
},
|
||||
{ deep: true, immediate: true }
|
||||
);
|
||||
|
Reference in New Issue
Block a user