From 40fd62cd2b7f40de997cefaa7a7be77b419930ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Fri, 17 Jun 2022 18:44:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=9C=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B5=E9=9D=A2=E4=B8=8B=E5=88=87=E6=8D=A2=E7=BB=84?= =?UTF-8?q?=E7=BB=87=EF=BC=8C=E7=82=B9=E5=87=BB=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E5=90=8E=E9=80=80=E6=93=8D=E4=BD=9C=E6=8E=A5=E5=8F=A3500?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/common.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/common.js b/src/utils/common.js index 33f6cba83..70e04abbf 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -160,6 +160,8 @@ export function hasUUID(s) { } export function replaceUUID(s, n) { + const index = s.search(uuidPattern) + if (index > 0) return s.substr(0, index) return s.replace(uuidPattern, n) }