diff --git a/utils/index.js b/utils/index.js index 8acd707..a12325a 100644 --- a/utils/index.js +++ b/utils/index.js @@ -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: {