From 36b234a825422b29b54cbdac8b18d6879d8b2618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Fri, 28 Oct 2022 09:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/apiWhiteList/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/views/system/apiWhiteList/index.vue b/web/src/views/system/apiWhiteList/index.vue index c8c974c..cb4afea 100644 --- a/web/src/views/system/apiWhiteList/index.vue +++ b/web/src/views/system/apiWhiteList/index.vue @@ -76,17 +76,17 @@ const crudRef = ref(); // crud 配置的ref const crudBinding = ref(); // 暴露的方法 -const { expose } = useExpose({ crudRef, crudBinding }); +const { crudExpose } = useExpose({ crudRef, crudBinding }); // 你的crud配置 -const { crudOptions } = createCrudOptions({ expose }); +const { crudOptions } = createCrudOptions({ crudExpose }); // 初始化crud配置 // eslint-disable-next-line @typescript-eslint/no-unused-vars,no-unused-vars -const { resetCrudOptions } = useCrud({ expose, crudOptions }); +const { resetCrudOptions } = useCrud({ crudExpose, crudOptions }); // 你可以调用此方法,重新初始化crud配置 // resetCrudOptions(options) // 页面打开后获取列表数据 onMounted(() => { - expose.doRefresh(); + crudExpose.doRefresh(); });