From 8c739ec49dea734f46b502fb526c51f41abccff6 Mon Sep 17 00:00:00 2001 From: lvjunzhao <967725@dms.yudean.com> Date: Thu, 16 Jan 2025 10:39:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=B8=8D=E7=94=A8t=E7=9A=84useI18n?= =?UTF-8?q?=EF=BC=8C=E5=AF=B9=E6=96=87=E6=9C=AC=E6=9B=BF=E6=8D=A2=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E3=80=82action=E9=85=8D=E7=BD=AEprefix=E7=9A=84url?= =?UTF-8?q?=E4=B8=AD=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/workflow/design/ImportFlow.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/workflow/design/ImportFlow.vue b/src/views/workflow/design/ImportFlow.vue index f1b9ce3..a69ce9d 100644 --- a/src/views/workflow/design/ImportFlow.vue +++ b/src/views/workflow/design/ImportFlow.vue @@ -57,7 +57,7 @@ async function open() { data.visible = true; - data.action = getAppEnvConfig().VITE_GLOB_API_URL + '/workflow/schema/import?cover='+props.coverType; + data.action = getAppEnvConfig().VITE_GLOB_API_URL + (getAppEnvConfig().VITE_GLOB_API_URL_PREFIX|| '') + '/workflow/schema/import?cover='+props.coverType; data.headers.Authorization = `Bearer ${getToken()}`; } function close() { @@ -70,13 +70,13 @@ } if (info.file.status === 'done') { if (info.file && info.file.response && info.file.response.code == 0) { - message.success(t(`{name}导入成功!`, { name: info.file.name })); + message.success(`${info.file.name}导入成功!`); close(); } else { - message.error(t('导入流程失败!'+ info.file.response.msg)); + message.error('导入流程失败!'+ info.file.response.msg); } } else if (info.file.status === 'error') { - message.error(t(`{name}上传失败.`, { name: info.file.name })); + message.error(`${info.file.name}上传失败.`); } }