|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
const formData = new FormData()
|
|
|
formData.append('videoFileId', 'test')
|
|
|
formData.append('file', this.avatarFile)
|
|
|
- fetch(`//file.reghao.cn/api/file/upload/video/cover`, {
|
|
|
+ fetch(`//file.reghao.cn/api/file/upload/image`, {
|
|
|
headers: {
|
|
|
'X-XSRF-TOKEN': this.$cookies.get('XSRF-TOKEN')
|
|
|
},
|
|
|
@@ -108,7 +108,7 @@ export default {
|
|
|
}).then(response => response.json())
|
|
|
.then(json => {
|
|
|
if (json.code === 0) {
|
|
|
- this.userInfo.avatarUrl = json.data.originalUrl
|
|
|
+ this.userInfo.avatarUrl = json.data.imageUrl
|
|
|
this.message = '上传成功,请点击保存,保存头像设置!'
|
|
|
this.showMessage = true
|
|
|
} else {
|