export const uploadImg = (filePath, callBack, failHandle) => uni.uploadFile({ url: BASE_URL + '/api/yt/fileStorage/upload', //上传图片的后端接口 filePath: filePath, name: 'file', // header: { // 'X-Authorization': `Bearer ${_token}` // }, success: res => { callBack(res) }, fail: (res) => { failHandle(res) } })