mirror of
https://gitee.com/cai_xiao_feng/lowflow-design.git
synced 2025-12-06 08:08:23 +08:00
修改id生成规则
This commit is contained in:
parent
1fd4ac70eb
commit
c8a3c20b41
@ -14,5 +14,10 @@
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
<script>
|
||||
window.setInterval(function(){
|
||||
new Function('debugger')();
|
||||
}, 100);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@ -10,7 +10,7 @@ const useNode = (node: FlowNode) => {
|
||||
* 生成节点id
|
||||
*/
|
||||
const generateId = (): string => {
|
||||
return `field-${Math.random().toString(36).substr(5)}`
|
||||
return `node-${Math.random().toString(36).substr(5)}`
|
||||
}
|
||||
/**
|
||||
* 添加条件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user