diff --git a/apps/web-antd/src/views/system/dict/data/index.vue b/apps/web-antd/src/views/system/dict/data/index.vue
index f60e524d7..2d62192ee 100644
--- a/apps/web-antd/src/views/system/dict/data/index.vue
+++ b/apps/web-antd/src/views/system/dict/data/index.vue
@@ -128,9 +128,14 @@ onMounted(() => {
dictType.value = value;
await tableApi.query();
});
+ emitter.on('reset', async () => {
+ dictType.value = '';
+ await tableApi.reload();
+ });
});
onBeforeUnmount(() => {
emitter.off('rowClick');
+ emitter.off('reset');
});
diff --git a/apps/web-antd/src/views/system/dict/index.vue b/apps/web-antd/src/views/system/dict/index.vue
index 220039e6b..c98d347a4 100644
--- a/apps/web-antd/src/views/system/dict/index.vue
+++ b/apps/web-antd/src/views/system/dict/index.vue
@@ -1,13 +1,8 @@
diff --git a/apps/web-antd/src/views/system/dict/mitt.ts b/apps/web-antd/src/views/system/dict/mitt.ts
index f81c6f550..19ca43a10 100644
--- a/apps/web-antd/src/views/system/dict/mitt.ts
+++ b/apps/web-antd/src/views/system/dict/mitt.ts
@@ -4,6 +4,7 @@ import { mitt } from '@vben/utils';
* dictType: string
*/
type Events = {
+ reset: void;
rowClick: string;
};
diff --git a/apps/web-antd/src/views/system/dict/type/index.vue b/apps/web-antd/src/views/system/dict/type/index.vue
index c23d3c7f7..0072cc35a 100644
--- a/apps/web-antd/src/views/system/dict/type/index.vue
+++ b/apps/web-antd/src/views/system/dict/type/index.vue
@@ -32,6 +32,11 @@ const formOptions: VbenFormProps = {
},
schema: querySchema(),
wrapperClass: 'grid-cols-1 md:grid-cols-2 lg:grid-cols-3',
+ handleReset: () => {
+ tableApi.formApi.resetForm();
+ tableApi.reload();
+ emitter.emit('reset');
+ },
};
const gridOptions: VxeGridProps = {