修复节点 id 冲突导致详情页无数据与在线状态错误 - #6
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
nodeget-statusshow | 761baff | Commit Preview URL Branch Preview URL |
May 06 2026, 03:35 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
uuid时互相覆盖了内存中节点数据。Description
Node.id并使用组合键source::uuid作为内部唯一标识,相关类型位于src/types.ts并由nodeId生成。id,主要修改集中在src/hooks/useNodes.ts,并在动态更新中按来源正确归属数据。node.id(卡片/表格/地图),相关修改在src/components/NodeCard.tsx、src/components/NodeTable.tsx和src/components/WorldMap.tsx。src/App.tsx的选中逻辑中增加了对旧 hash(仅uuid)的回退查找以维持历史链接兼容。Testing
npm run build,生产构建成功且生成了产物(构建通过)。Codex Task