Ver código fonte

更新 MyProfile.vue 中的 channelCode

reghao 1 ano atrás
pai
commit
cafabe0549
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/views/my/MyProfile.vue

+ 3 - 3
src/views/my/MyProfile.vue

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