From 84581333b74d8ac1b0867e5b8c276f6fc332e4eb Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 19 九月 2025 14:06:21 +0800
Subject: [PATCH] fix: bug

---
 src/views/DictionaryManage/DictionaryCategoryManage.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/DictionaryManage/DictionaryCategoryManage.vue b/src/views/DictionaryManage/DictionaryCategoryManage.vue
index b110d7b..ae68ab9 100644
--- a/src/views/DictionaryManage/DictionaryCategoryManage.vue
+++ b/src/views/DictionaryManage/DictionaryCategoryManage.vue
@@ -62,6 +62,7 @@
   operationBtnMap,
 });
 
+const { updateDictionaryCategorySelect } = useGetDictionaryCategorySelect();
 const BaseState = {
   loading: true,
 };
@@ -100,7 +101,7 @@
   {
     defaultExtraParams: {
       keywords: '',
-      orderInput: [{ property: 'sort', order: EnumPagedListOrder.Asc }],
+      orderInput: [{ property: 'sort', order: EnumPagedListOrder.Desc }],
     },
     queryKey: ['dictionaryServices/getDictionaryCategories'],
     columnsRenderProps: {},
@@ -121,7 +122,7 @@
   }
 }
 
-const { dialogProps, handleAdd, handleEdit, editForm } = useFormDialog({
+const { dialogProps, handleAdd, handleEdit, editForm, dialogState } = useFormDialog({
   onConfirm: handleAddOrEdit,
   defaultFormParams: {
     id: '',
@@ -146,7 +147,9 @@
     let res = await dictionaryServices.saveDictionaryCategory(params);
     if (res) {
       Message.successMessage('鎿嶄綔鎴愬姛');
+      updateDictionaryCategorySelect();
       getList(paginationState.pageIndex);
+      dialogState.dialogVisible = false;
     }
   } catch (error) {}
 }
@@ -158,6 +161,7 @@
     let res = await dictionaryServices.deleteDictionaryCategory(params);
     if (res) {
       Message.successMessage('鎿嶄綔鎴愬姛');
+      updateDictionaryCategorySelect();
       getList(paginationState.pageIndex);
     }
   } catch (error) {}

--
Gitblit v1.9.1