scorpio 2 年之前
父节点
当前提交
93ff72d7db
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/dash/compoents/profile.vue

+ 3 - 2
src/views/dash/compoents/profile.vue

@@ -233,9 +233,10 @@ export default {
             method: 'POST',
             headers: this.headers,
             body: form
+          }).then(res => {
+            console.log(res)
           })
-          // Perhaps you should add the setting appropriate file format here
-        }, 'image/jpeg')
+        }, 'image/png')
       }
     }
   }