This commit is contained in:
yanran200730
2022-11-09 10:41:40 +08:00
parent bd94a1372a
commit e8948dc28d
4 changed files with 4 additions and 4 deletions

View File

@@ -117,7 +117,7 @@
onChooseAvatar (e) {
this.$loading()
uni.uploadFile({
url: this.$instance.defaults.baseURL + (process.env.NODE_ENV == 'production' ? 'api' : '') + '/file/add',
url: this.$instance.defaults.baseURL + (process.env.NODE_ENV == 'production' ? '/api' : '') + '/file/add',
filePath: e.detail.avatarUrl,
name: 'file',
header: {