mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-04 23:16:37 +08:00
优化仪表板页面,移除冗余组件,简化代码结构
This commit is contained in:
@@ -320,7 +320,7 @@ export function NodeDetailPage({ nodeId }: { nodeId: string }) {
|
||||
const saveMutation = useMutation({
|
||||
mutationFn: async (payload: Parameters<typeof updateNode>[1]) =>
|
||||
updateNode(Number(nodeId), payload),
|
||||
onSuccess: async (updatedNode) => {
|
||||
onSuccess: async () => {
|
||||
setFeedback({ tone: 'success', message: '节点已更新。' });
|
||||
setIsEditorOpen(false);
|
||||
await queryClient.invalidateQueries({ queryKey: nodesQueryKey });
|
||||
|
||||
Reference in New Issue
Block a user