upload file

This commit is contained in:
2020-07-10 09:03:19 +08:00
parent 9ffdfa652a
commit a5b83f31a8
15 changed files with 183 additions and 84 deletions

View File

@@ -80,7 +80,8 @@ export default {
this.avatar = res.tempFilePaths[0];
common.uploadFile({
url: url,
filePath: res.tempFilePaths[0]
name: 'avatar',
filePath: res.tempFilePaths[0]
}).then(result => {
this.avatar = result;
}, error => {