This commit is contained in:
yanran200730
2022-11-03 11:00:03 +08:00
parent d8569137e9
commit 77111556bd
3 changed files with 3 additions and 3 deletions

View File

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