fix: 修复部分代码格式error的问题
This commit is contained in:
@@ -176,7 +176,7 @@ export default {
|
||||
if (file.status !== 'ready') return
|
||||
if (!_.endsWith(file.name, '.xml')) {
|
||||
this.fileList = []
|
||||
this.$message.error('Only support '+ this.fileTypeLimit + ' files')
|
||||
this.$message.error('Only support ' + this.fileTypeLimit + ' files')
|
||||
} else {
|
||||
this.fileList = fileList.slice(-1)
|
||||
this.$refs.licenseUpload.submit()
|
||||
|
||||
@@ -6,10 +6,10 @@ import store from '@/store'
|
||||
import App from '@/App.vue'
|
||||
import '@/utils/http.js'
|
||||
import commonMixin from '@/mixins/common'
|
||||
import { cancelWithChange, noData, myHighLight,selectLoadMore } from '@/utils/tools'
|
||||
import { cancelWithChange, noData, myHighLight, selectLoadMore } from '@/utils/tools'
|
||||
import { ClickOutside } from 'element-plus/lib/directives'
|
||||
import i18n from '@/i18n'
|
||||
//import '@/mock/index.js'
|
||||
// import '@/mock/index.js'
|
||||
import hljsVuePlugin from '@highlightjs/vue-plugin'
|
||||
import 'highlight.js/styles/color-brewer.css'
|
||||
import '@/assets/css/main.scss' // 样式入口
|
||||
|
||||
@@ -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]
|
||||
}
|
||||
|
||||
|
||||
@@ -647,7 +647,6 @@ export default {
|
||||
}).finally(() => {
|
||||
this.newFilterData[index].loading = false
|
||||
this.newFilterData[index].firstLoad = false
|
||||
console.log('查看loading', this.newFilterData)
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -675,7 +674,7 @@ export default {
|
||||
} else {
|
||||
this.$message.error(response.data.message)
|
||||
}
|
||||
}).catch((e) => {
|
||||
}).catch(() => {
|
||||
this.listData = []
|
||||
}).finally(() => {
|
||||
this.listLoading = false
|
||||
|
||||
@@ -103,7 +103,6 @@ import entityDetailMixin from './entityDetailMixin'
|
||||
import { unitTypes } from '@/utils/constants'
|
||||
import { valueToRangeValue } from '@/utils/unit-convert'
|
||||
import _ from 'lodash'
|
||||
import axios from 'axios'
|
||||
import relatedServer from '@/mixins/relatedServer'
|
||||
import { dateFormatByAppearance, getMillisecond, getSecond, getNowTime } from '@/utils/date-util'
|
||||
import Loading from '@/components/common/Loading'
|
||||
|
||||
Reference in New Issue
Block a user