去掉图片上车的空格修复上传404

This commit is contained in:
hupeng
2020-10-27 16:39:41 +08:00
parent 7de08e4b6e
commit f744b242a0

View File

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