fix: 帮助文档文件名称指定5G核心网网管操作手册.pdf
This commit is contained in:
@@ -1680,6 +1680,7 @@ export default {
|
|||||||
},
|
},
|
||||||
tool: {
|
tool: {
|
||||||
help: {
|
help: {
|
||||||
|
fileName: "5G Core Network Network Management Operations Manual.pdf",
|
||||||
download: "Download",
|
download: "Download",
|
||||||
pdfViewer: "In-browser preview",
|
pdfViewer: "In-browser preview",
|
||||||
pdfViewerErr: "Sorry, your browser does not support PDF preview!",
|
pdfViewerErr: "Sorry, your browser does not support PDF preview!",
|
||||||
|
|||||||
@@ -1680,6 +1680,7 @@ export default {
|
|||||||
},
|
},
|
||||||
tool: {
|
tool: {
|
||||||
help: {
|
help: {
|
||||||
|
fileName: "5G核心网网管操作手册.pdf",
|
||||||
download: "下载",
|
download: "下载",
|
||||||
pdfViewer: "浏览器内预览",
|
pdfViewer: "浏览器内预览",
|
||||||
pdfViewerErr: "很抱歉,您的浏览器不支持 PDF 预览!",
|
pdfViewerErr: "很抱歉,您的浏览器不支持 PDF 预览!",
|
||||||
|
|||||||
@@ -70,9 +70,7 @@ function fnDownload() {
|
|||||||
fetch(url)
|
fetch(url)
|
||||||
.then(response => response.blob())
|
.then(response => response.blob())
|
||||||
.then(blob => {
|
.then(blob => {
|
||||||
let fileName = url.substring(url.lastIndexOf('/') + 1);
|
saveAs(blob, t('views.tool.help.fileName'));
|
||||||
fileName = fileName.split('?')[0];
|
|
||||||
saveAs(blob, fileName);
|
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
|
|||||||
Reference in New Issue
Block a user