Skip to content

Commit 506e409

Browse files
committed
modified: src/index.ts
1 parent c6e3a30 commit 506e409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { toReactive } from "@vueuse/core";
2-
import { v4 } from "uuid";
32
import { computed, isReactive, reactive } from "vue";
3+
44
export default (
55
tree: Record<string, unknown>[],
66
{
@@ -85,7 +85,7 @@ export default (
8585
| undefined,
8686
index = the[keyIndex] as number,
8787
siblings = the[keySiblings] as Record<string, unknown>[];
88-
const id = v4();
88+
const id = Date.now().toString(36);
8989
switch (true) {
9090
case !!the[keyParent]:
9191
siblings.splice(index + 1, 0, { [keyId]: id });

0 commit comments

Comments
 (0)