From 3abee72fee286864b665033b23b172ef0ea92d83 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Wed, 11 Mar 2026 22:36:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0=E5=90=8E=EF=BC=8C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=90=8C=E6=AD=A5=E5=88=B7=E6=96=B0=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/certd/certd/issues/680 --- .../src/views/sys/enterprise/project/crud.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx b/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx index d6e0e053e..33e902877 100644 --- a/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx +++ b/packages/ui/certd-client/src/views/sys/enterprise/project/crud.tsx @@ -7,6 +7,7 @@ import * as api from "./api"; import { useSettingStore } from "/@/store/settings"; import { useUserStore } from "/@/store/user"; import { useI18n } from "/src/locales"; +import { useProjectStore } from "/@/store/project"; export default function ({ crudExpose, context }: CreateCrudOptionsProps): CreateCrudOptionsRet { const router = useRouter(); @@ -29,6 +30,7 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat }; const userStore = useUserStore(); + const projectStore = useProjectStore(); const settingStore = useSettingStore(); const selectedRowKeys: Ref = ref([]); context.selectedRowKeys = selectedRowKeys; @@ -61,6 +63,12 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat minWidth: 200, fixed: "right", }, + form: { + onSuccess: async () => { + await projectStore.reload(); + crudExpose?.doRefresh(); + }, + }, columns: { id: { title: "ID",