This commit is contained in:
archer
2023-07-18 21:51:31 +08:00
parent 51b98df4cb
commit 7fe2017ab6
6 changed files with 22 additions and 15 deletions

View File

@@ -60,7 +60,7 @@ const Info = (
title: '删除成功',
status: 'success'
});
router.replace(`/kb?kbId=${myKbList.find((item) => item._id !== kbId)?._id || ''}`);
router.replace(`/kb/list`);
await loadKbList();
} catch (err: any) {
toast({
@@ -69,7 +69,7 @@ const Info = (
});
}
setBtnLoading(false);
}, [setBtnLoading, kbId, toast, router, myKbList, loadKbList]);
}, [setBtnLoading, kbId, toast, router, loadKbList]);
const saveSubmitSuccess = useCallback(
async (data: KbItemType) => {