修复上传头像失败问题
This commit is contained in:
parent
4bedd70016
commit
1611c92782
|
|
@ -161,7 +161,7 @@
|
|||
title: '上传中...'
|
||||
});
|
||||
uni.uploadFile({
|
||||
url: configdata.APIHOST + '/alioss/upload',
|
||||
url: configdata.APIHOST + 'alioss/upload',
|
||||
// url: 'https://jiaoyu.xianmxkj.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
|
||||
filePath: e.detail.avatarUrl,
|
||||
// filePath: res.tempFilePaths[0],
|
||||
|
|
@ -214,7 +214,7 @@
|
|||
let token = uni.getStorageSync('token');
|
||||
let userId = uni.getStorageSync('userId');
|
||||
uni.uploadFile({
|
||||
url: configdata.APIHOST + '/alioss/upload',
|
||||
url: configdata.APIHOST + 'alioss/upload',
|
||||
// url: 'https://jiaoyu.xianmxkj.com/sqx_fast/alioss/upload', //仅为示例,非真实的接口地址
|
||||
filePath: res.tempFilePaths[0],
|
||||
name: 'file',
|
||||
|
|
|
|||
Loading…
Reference in New Issue