From d27738b9ec01d959b9221616e9ac1cb6ef00d796 Mon Sep 17 00:00:00 2001 From: hanyuxia Date: Wed, 20 Mar 2024 11:01:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=B8=E5=8F=AF=E8=AF=81=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E6=96=87=E4=BB=B6=E5=90=8D=E7=A7=B0=E4=BB=8E=E5=93=8D?= =?UTF-8?q?=E5=BA=94=E5=A4=B4=E4=B8=AD=E7=9A=84Content-Disposition?= =?UTF-8?q?=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 8a18fb09f4fcc7c28cc667337485b3f50cc4a9ba) --- src/views/administration/License.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/administration/License.vue b/src/views/administration/License.vue index acc81c1f..371cefc2 100644 --- a/src/views/administration/License.vue +++ b/src/views/administration/License.vue @@ -108,7 +108,11 @@ export default { }, downloadFile () { axios.get(this.downloadC2vUrl, { responseType: 'blob' }).then(res => { - const fileName = 'CN-' + this.licenseObject.supportID + '-license-apply.xml' + let fileName = '' + if(res.headers['content-disposition']) { + fileName = res.headers['content-disposition'].split(';')[1].split('filename=')[1] + } + if (window.navigator.msSaveOrOpenBlob) { // 兼容ie11 const blobObject = new Blob([res.data])