|
|
@ -988,7 +988,7 @@ export function chooseImage(callback) { |
|
|
|
console.log(image); |
|
|
|
console.log(image); |
|
|
|
uni.showLoading({ title: "图片上传中", mask: true }); |
|
|
|
uni.showLoading({ title: "图片上传中", mask: true }); |
|
|
|
uni.uploadFile({ |
|
|
|
uni.uploadFile({ |
|
|
|
url: `${VUE_APP_API_URL} /api/upload`, |
|
|
|
url: `${VUE_APP_API_URL}/api/upload`, |
|
|
|
file: image, |
|
|
|
file: image, |
|
|
|
filePath: image.path, |
|
|
|
filePath: image.path, |
|
|
|
header: { |
|
|
|
header: { |
|
|
|