From f19e5e48f31700aa375da970dbccb7f6384a0987 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 27 Feb 2024 10:24:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B8=AE=E5=8A=A9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0=E6=8C=87=E5=AE=9A5G?= =?UTF-8?q?=E6=A0=B8=E5=BF=83=E7=BD=91=E7=BD=91=E7=AE=A1=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=89=8B=E5=86=8C.pdf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/en-US.ts | 1 + src/i18n/locales/zh-CN.ts | 1 + src/views/tool/help/index.vue | 4 +--- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 6759ef19..f483b86a 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -1680,6 +1680,7 @@ export default { }, tool: { help: { + fileName: "5G Core Network Network Management Operations Manual.pdf", download: "Download", pdfViewer: "In-browser preview", pdfViewerErr: "Sorry, your browser does not support PDF preview!", diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 7d832154..4ff4c3e0 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -1680,6 +1680,7 @@ export default { }, tool: { help: { + fileName: "5G核心网网管操作手册.pdf", download: "下载", pdfViewer: "浏览器内预览", pdfViewerErr: "很抱歉,您的浏览器不支持 PDF 预览!", diff --git a/src/views/tool/help/index.vue b/src/views/tool/help/index.vue index ae24c2f7..70dfe05f 100644 --- a/src/views/tool/help/index.vue +++ b/src/views/tool/help/index.vue @@ -70,9 +70,7 @@ function fnDownload() { fetch(url) .then(response => response.blob()) .then(blob => { - let fileName = url.substring(url.lastIndexOf('/') + 1); - fileName = fileName.split('?')[0]; - saveAs(blob, fileName); + saveAs(blob, t('views.tool.help.fileName')); }) .catch(error => { console.error('Error:', error);