From 738c169609be1b155a976dd5595cd5c450f2fc18 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Mon, 17 Mar 2025 17:07:52 +0800 Subject: [PATCH] =?UTF-8?q?perf(=E4=BB=AA=E8=A1=A8=E6=9D=BF):=20=E5=88=86?= =?UTF-8?q?=E4=BA=AB=20Ticket=20=E5=8F=82=E6=95=B0=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E9=80=82=E9=85=8D=E5=A4=96=E9=83=A8=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/locales/en.ts | 2 +- core/core-frontend/src/locales/tw.ts | 2 +- core/core-frontend/src/locales/zh-CN.ts | 2 +- core/core-frontend/src/views/share/share/TicketEdit.vue | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/core-frontend/src/locales/en.ts b/core/core-frontend/src/locales/en.ts index 727ba5d30b..896ce6b7ec 100644 --- a/core/core-frontend/src/locales/en.ts +++ b/core/core-frontend/src/locales/en.ts @@ -3653,7 +3653,7 @@ export default { 'Unit: minutes, range: [0-1440], 0 means no time limit, starting from the first access using the ticket', arg_val_tips: 'Please enter parameter values', arg_format_tips: - 'Please use JSON format string, example single valued argVal, multi valued [argVal1, argVal2]' + 'Please use JSON format string, example single valued [argVal], multi valued [argVal1, argVal2]' }, pblink: { key_pwd: 'Please enter the password to open the link', diff --git a/core/core-frontend/src/locales/tw.ts b/core/core-frontend/src/locales/tw.ts index cacfb5b566..eb2a066c38 100644 --- a/core/core-frontend/src/locales/tw.ts +++ b/core/core-frontend/src/locales/tw.ts @@ -3548,7 +3548,7 @@ export default { refresh: '刷新', time_tips: '單位: 分鐘,範圍: [0-1440],0代表無期限,自首次使用ticket訪問開始', arg_val_tips: '請輸入參數值', - arg_format_tips: '請使用JSON格式字符串,示例單值argVal,多值[argVal1, argVal2]' + arg_format_tips: '請使用JSON格式字符串,示例單值[argVal],多值[argVal1, argVal2]' }, pblink: { key_pwd: '請輸入密碼開啟連結', diff --git a/core/core-frontend/src/locales/zh-CN.ts b/core/core-frontend/src/locales/zh-CN.ts index e2d296a91e..d9856ce06e 100644 --- a/core/core-frontend/src/locales/zh-CN.ts +++ b/core/core-frontend/src/locales/zh-CN.ts @@ -3555,7 +3555,7 @@ export default { refresh: '刷新', time_tips: '单位: 分钟,范围: [0-1440],0代表无期限,自首次使用ticket访问开始', arg_val_tips: '请输入参数值', - arg_format_tips: '请使用JSON格式字符串,示例单值argVal,多值[argVal1, argVal2]' + arg_format_tips: '请使用JSON格式字符串,示例单值[argVal],多值[argVal1, argVal2]' }, pblink: { key_pwd: '请输入密码打开链接', diff --git a/core/core-frontend/src/views/share/share/TicketEdit.vue b/core/core-frontend/src/views/share/share/TicketEdit.vue index db5fa7ba35..76504c9121 100644 --- a/core/core-frontend/src/views/share/share/TicketEdit.vue +++ b/core/core-frontend/src/views/share/share/TicketEdit.vue @@ -148,7 +148,8 @@ const args2ArgList = () => { const row = { name: key, val: JSON.stringify(val) } state.argList.push(row) } else { - const row = { name: key, val: argObj[key] } + const tempArray = [val] + const row = { name: key, val: JSON.stringify(tempArray) } state.argList.push(row) } } @@ -165,7 +166,7 @@ const argList2Args = () => { const argObj = {} state.argList.forEach(row => { if (row.name && row.val) { - argObj[row.name] = row.val + argObj[row.name] = JSON.parse(row.val) } }) state.form.args = JSON.stringify(argObj)