修改id生成规则

This commit is contained in:
caixiaofeng 2023-09-27 10:30:08 +08:00
parent 1fd4ac70eb
commit c8a3c20b41
2 changed files with 6 additions and 1 deletions

View File

@ -14,5 +14,10 @@
<body> <body>
<div id="app"></div> <div id="app"></div>
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
<script>
window.setInterval(function(){
new Function('debugger')();
}, 100);
</script>
</body> </body>
</html> </html>

View File

@ -10,7 +10,7 @@ const useNode = (node: FlowNode) => {
* id * id
*/ */
const generateId = (): string => { const generateId = (): string => {
return `field-${Math.random().toString(36).substr(5)}` return `node-${Math.random().toString(36).substr(5)}`
} }
/** /**
* *