|
|
@ -2,6 +2,7 @@ import Axios from 'axios' |
|
|
|
import Api from '@/utils/api' |
|
|
|
import Api from '@/utils/api' |
|
|
|
import Setting from '@/setting' |
|
|
|
import Setting from '@/setting' |
|
|
|
import Util from '@/libs/util' |
|
|
|
import Util from '@/libs/util' |
|
|
|
|
|
|
|
import { Loading } from 'element-ui' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
//skin:'oxide-dark',
|
|
|
|
//skin:'oxide-dark',
|
|
|
|
language:'zh_CN', |
|
|
|
language:'zh_CN', |
|
|
@ -347,6 +348,7 @@ export default { |
|
|
|
let file = this.files[0]; |
|
|
|
let file = this.files[0]; |
|
|
|
let fd = new FormData(); |
|
|
|
let fd = new FormData(); |
|
|
|
fd.append("file", file); |
|
|
|
fd.append("file", file); |
|
|
|
|
|
|
|
const load = Loading.service() |
|
|
|
Axios({ |
|
|
|
Axios({ |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
url: Api.fileUploadNakadai, |
|
|
|
url: Api.fileUploadNakadai, |
|
|
@ -356,8 +358,11 @@ export default { |
|
|
|
token: Util.local.get(Setting.tokenKey) |
|
|
|
token: Util.local.get(Setting.tokenKey) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}).then(({ data }) => { |
|
|
|
}).then(({ data }) => { |
|
|
|
|
|
|
|
load.close() |
|
|
|
callback(data.filesResult.fileUrl) |
|
|
|
callback(data.filesResult.fileUrl) |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => { |
|
|
|
|
|
|
|
load.close() |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
//触发点击
|
|
|
|
//触发点击
|
|
|
|
input.click(); |
|
|
|
input.click(); |
|
|
|