diff --git a/src/views/system/dict/DictData.vue b/src/views/system/dict/DictData.vue index afce2293..fcb47f1c 100644 --- a/src/views/system/dict/DictData.vue +++ b/src/views/system/dict/DictData.vue @@ -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(); }