解决【issues/8527】apiSelect分页加载重复请求

dependabot/maven/jeecg-boot/commons-fileupload-commons-fileupload-1.6.0
JEECG 2025-07-08 13:44:47 +08:00
parent 9c21f621c0
commit 4870c43f39
1 changed files with 16 additions and 3 deletions

View File

@ -123,9 +123,22 @@
}, [] as OptionsItem[]);
});
// update-begin--author:liaozhiyang---date:20240823---forissues/6999ApiSelect
watchEffect(() => {
props.immediate && fetch();
});
// update-begin--author:liaozhiyang---date:20250707---for:issues/8527apiSelect
watch(
() => props.immediate,
() => {
props.immediate && fetch();
},
{ immediate: true }
);
watch(
() => [props.api, props.pageConfig, props.resultField, props.params],
() => {
props.immediate && fetch();
},
{ deep: true }
);
// update-end--author:liaozhiyang---date:20250707---for:issues/8527apiSelect
// update-end--author:liaozhiyang---date:20240823---forissues/6999ApiSelect
watch(