Commit 5d303c70 by wenyang

上传图片时调整接口地址

parent 69ab34a7
......@@ -19,7 +19,7 @@ export function CommonUpload(psrams) {
uni.uploadFile({
// /api/file/upload //pc上传代理
// https://mdev.zuihuibi.cn/api/file/upload
url: `${baseURL}/api/file/upload`, // 后端api接口
url: `${apiURL}/file/upload`, // 后端api接口
filePath: res.tempFilePaths[0], // uni.chooseImage函数调用后获取的本地文件路劲
name: 'file', //后端通过'file'获取上传的文件对象
// formData: this.sendDate,
......@@ -95,7 +95,7 @@ export function uploadFilepdf(params) {
mask: true
});
uni.uploadFile({
url: `/api/file/upload`, // 后端api接口
url: `${apiURL}/file/upload`, // 后端api接口
filePath: res.tempFilePaths[0], // uni.chooseImage函数调用后获取的本地文件路劲
name: 'file', //后端通过'file'获取上传的文件对象
formData: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment