From da0156031ca2b5c9a423ef9bc9657b41df31286a Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 19 Mar 2024 15:38:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8B=E8=BD=BDlice?= =?UTF-8?q?nse=E6=97=B6=E6=96=87=E4=BB=B6=E5=90=8D=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Login.vue | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Login.vue b/src/Login.vue index c430ab9c..8bf39592 100644 --- a/src/Login.vue +++ b/src/Login.vue @@ -138,7 +138,8 @@ export default { }, downloadFile () { axios.get(this.downloadC2vUrl, { responseType: 'blob' }).then(res => { - const fileName = 'CN-' + this.supportID + '-license-apply.xml' + const disposition = res.headers['content-disposition'] + const fileName = decodeURI(disposition.split('filename=')[1]) if (window.navigator.msSaveOrOpenBlob) { // 兼容ie11 const blobObject = new Blob([res.data]) @@ -229,13 +230,6 @@ export default { async mounted () { this.queryAppearance() this.checkLicenseStatus() - await axios.get(api.license).then(res => { - if (res.status === 200) { - this.supportID = res.data.data.license.supportID - } - }).catch(e => { - console.log(e) - }) }, setup (props) { const { currentRoute } = useRouter()