From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001
From: wwf <yearningwang@iqtogether.com>
Date: 星期三, 04 六月 2025 15:17:49 +0800
Subject: [PATCH] 初始化

---
 app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx b/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx
index 7798ed3..db2425c 100644
--- a/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx
+++ b/app/components/workflow/nodes/_base/components/editor/code-editor/editor-support-vars.tsx
@@ -84,15 +84,15 @@
 
   const getUniqVarName = (varName: string) => {
     if (varList.find(v => v.variable === varName)) {
-      const match = varName.match(/_(\d+)$/)
+      const match = varName.match(/_([0-9]+)$/)
 
       const index = (() => {
         if (match)
-          return Number.parseInt(match[1]!) + 1
+          return parseInt(match[1]!) + 1
 
         return 1
       })()
-      return getUniqVarName(`${varName.replace(/_(\d+)$/, '')}_${index}`)
+      return getUniqVarName(`${varName.replace(/_([0-9]+)$/, '')}_${index}`)
     }
     return varName
   }
@@ -148,7 +148,7 @@
       {isShowVarPicker && (
         <div
           ref={popupRef}
-          className='w-[228px] space-y-1 rounded-lg border border-gray-200 bg-white p-1 shadow-lg'
+          className='w-[228px] p-1 bg-white rounded-lg border border-gray-200 shadow-lg space-y-1'
           style={{
             position: 'fixed',
             top: popupPosition.y,

--
Gitblit v1.8.0