fix: 修复部分代码格式error的问题

This commit is contained in:
刘洪洪
2024-03-26 10:27:57 +08:00
parent 9e5a5d0bc3
commit ba4b6e289d
5 changed files with 6 additions and 7 deletions

View File

@@ -51,6 +51,7 @@ import { storageKey } from '@/utils/constants'
import axios from 'axios'
import { ref } from 'vue'
import { dateFormat } from '@/utils/date-util'
import _ from 'lodash'
export default {
name: 'License',
@@ -110,7 +111,7 @@ export default {
downloadFile () {
axios.get(this.downloadC2vUrl, { responseType: 'blob' }).then(res => {
let fileName = ''
if(res.headers['content-disposition']) {
if (res.headers['content-disposition']) {
fileName = res.headers['content-disposition'].split(';')[1].split('filename=')[1]
}