From fa044f59729a21acd9c13c8c6f230d834f675512 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Thu, 23 Jan 2025 23:01:16 +0800 Subject: [PATCH] code refactor --- src/views/desktop/categories/list/dialogs/EditDialog.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/desktop/categories/list/dialogs/EditDialog.vue b/src/views/desktop/categories/list/dialogs/EditDialog.vue index ee52959f..3cdaa1aa 100644 --- a/src/views/desktop/categories/list/dialogs/EditDialog.vue +++ b/src/views/desktop/categories/list/dialogs/EditDialog.vue @@ -143,10 +143,6 @@ const showState = ref(false); let resolveFunc: ((value: TransactionCategoryEditRespose) => void) | null = null; let rejectFunc: ((reason?: unknown) => void) | null = null; -defineExpose({ - open -}); - function open(options: { id?: string; parentId?: string; type?: CategoryType; currentCategory?: TransactionCategory }): Promise { showState.value = true; loading.value = true; @@ -239,4 +235,8 @@ function cancel(): void { rejectFunc?.(); showState.value = false; } + +defineExpose({ + open +});