fix: tool update refresh
This commit is contained in:
@@ -56,6 +56,8 @@ const Mcp: React.FC<{ getStatusTag: (status: string) => ReactNode }> = ({ getSta
|
||||
testConnection(item.id)
|
||||
.then(() => {
|
||||
message.success(t('tool.testConnectionSuccess'));
|
||||
})
|
||||
.finally(() => {
|
||||
getData()
|
||||
})
|
||||
};
|
||||
|
||||
@@ -75,6 +75,9 @@ const InnerToolModal = forwardRef<InnerToolModalRef, InnerToolModalProps>(({
|
||||
.then(() => {
|
||||
message.success(t('tool.testConnectionSuccess'));
|
||||
})
|
||||
.finally(() => {
|
||||
refreshTable()
|
||||
})
|
||||
};
|
||||
|
||||
// 暴露给父组件的方法
|
||||
|
||||
@@ -115,10 +115,10 @@ const McpServiceModal = forwardRef<McpServiceModalRef, McpServiceModalProps>(({
|
||||
testConnection(res.tool_id || editVo?.id)
|
||||
.then(() => {
|
||||
handleClose();
|
||||
refresh()
|
||||
})
|
||||
.finally(() => {
|
||||
setLoading(false);
|
||||
refresh()
|
||||
})
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user