持久化导入导出支持

This commit is contained in:
2025-07-09 14:39:34 +08:00
parent 7d07e98e76
commit 6f5a1304a6
4 changed files with 213 additions and 27 deletions

View File

@@ -5,7 +5,7 @@ import { useFilesStore } from './useStore'
let id = 0
function getId() {
return `dndnode_${id++}`
return `dndnode_${Date.now()}_${Math.floor(Math.random() * 10000)}`;
}
const state = {