|
@@ -229,7 +229,7 @@ export default {
|
|
|
Authorization: ''
|
|
Authorization: ''
|
|
|
},
|
|
},
|
|
|
imgData: {
|
|
imgData: {
|
|
|
- channelId: 0
|
|
|
|
|
|
|
+ channelCode: 0
|
|
|
},
|
|
},
|
|
|
coverUrl: null,
|
|
coverUrl: null,
|
|
|
// ****************************************************************************************************************
|
|
// ****************************************************************************************************************
|
|
@@ -266,7 +266,7 @@ export default {
|
|
|
getAvatarChannelInfo().then(res => {
|
|
getAvatarChannelInfo().then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
const resData = res.data
|
|
const resData = res.data
|
|
|
- this.imgData.channelId = resData.channelId
|
|
|
|
|
|
|
+ this.imgData.channelCode = resData.channelCode
|
|
|
this.imgOssUrl = resData.ossUrl
|
|
this.imgOssUrl = resData.ossUrl
|
|
|
this.imgHeaders.Authorization = 'Bearer ' + resData.token
|
|
this.imgHeaders.Authorization = 'Bearer ' + resData.token
|
|
|
} else {
|
|
} else {
|
|
@@ -307,7 +307,7 @@ export default {
|
|
|
this.coverUrl = URL.createObjectURL(file.raw)
|
|
this.coverUrl = URL.createObjectURL(file.raw)
|
|
|
|
|
|
|
|
const avatar = {}
|
|
const avatar = {}
|
|
|
- avatar.channelId = this.imgData.channelId
|
|
|
|
|
|
|
+ avatar.channelId = this.imgData.channelCode
|
|
|
avatar.uploadId = resData.uploadId
|
|
avatar.uploadId = resData.uploadId
|
|
|
updateAvatar(avatar).then(resp => {
|
|
updateAvatar(avatar).then(resp => {
|
|
|
if (resp.code === 0) {
|
|
if (resp.code === 0) {
|