fix(DictData): 字典数据弹窗切换数据未刷新问题修复

This commit is contained in:
haoxr 2023-03-14 21:57:25 +08:00
parent a50a0da5df
commit dba95fac12
1 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,14 @@ const props = defineProps({
}
});
watch(
() => props.typeCode,
(newVal: string) => {
queryParams.typeCode = newVal;
resetQuery();
}
);
const queryFormRef = ref(ElForm);
const dataFormRef = ref(ElForm);
@ -80,6 +88,7 @@ function handleQuery() {
*/
function resetQuery() {
queryFormRef.value.resetFields();
queryParams.pageNum = 1;
handleQuery();
}