|
|
@ -349,14 +349,14 @@ export default { |
|
|
|
fd.append("file", file); |
|
|
|
fd.append("file", file); |
|
|
|
Axios({ |
|
|
|
Axios({ |
|
|
|
method: 'post', |
|
|
|
method: 'post', |
|
|
|
url: Api.fileupload, |
|
|
|
url: Api.fileUploadNakadai, |
|
|
|
data: fd, |
|
|
|
data: fd, |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
'Content-Type': 'multipart/form-data', |
|
|
|
'Content-Type': 'multipart/form-data', |
|
|
|
token: Util.local.get(Setting.tokenKey) |
|
|
|
token: Util.local.get(Setting.tokenKey) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}).then(({ data }) => { |
|
|
|
}).then(({ data }) => { |
|
|
|
callback(data.data.filesResult.fileId) |
|
|
|
callback(data.filesResult.fileUrl) |
|
|
|
}).catch(res => {}) |
|
|
|
}).catch(res => {}) |
|
|
|
} |
|
|
|
} |
|
|
|
//触发点击
|
|
|
|
//触发点击
|
|
|
|