Explorar el Código

更新 userAvatar.vue

lex hace 3 años
padre
commit
1cbdee47ad
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/profile/userAvatar.vue

+ 1 - 1
src/views/profile/userAvatar.vue

@@ -168,7 +168,7 @@ export default {
 
       const formData = new FormData();
       formData.append("avatar", url);
-      uploadAvatar(formData).then(response => {
+      uploadAvatar({ avatar: url }).then(response => {
         if (response.code === 200) {
           this.options.img = url;
           this.msgSuccess("修改成功");