From 0866ceccac3121ddf47d46249b0f12c9ae0d4799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=94=E8=B7=91=E7=9A=84=E9=9D=A2=E6=9D=A1?= <1262327911@qq.com> Date: Wed, 5 Jun 2024 18:21:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=87=E8=AE=B0=E5=88=86=E7=BB=84?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=97=B6=E5=80=99=E7=9A=84ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/utils.ts | 2 +- src/views/preview/components/PreviewRenderList/index.vue | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 70a68cb3..70cf7be9 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -25,7 +25,7 @@ export const isDev = () => { * @param { Number } randomLength */ export const getUUID = (randomLength = 10) => { - return Number(Math.random().toString().substring(2, randomLength) + Date.now()).toString(36) + return 'id_' + Number(Math.random().toString().substring(2, randomLength) + Date.now()).toString(36) } /** diff --git a/src/views/preview/components/PreviewRenderList/index.vue b/src/views/preview/components/PreviewRenderList/index.vue index d22be72d..af1e710a 100644 --- a/src/views/preview/components/PreviewRenderList/index.vue +++ b/src/views/preview/components/PreviewRenderList/index.vue @@ -1,6 +1,7 @@