Commit 9c52c6d7 by yanju

动态视频上传

parent 43f03ffb
...@@ -339,9 +339,9 @@ ...@@ -339,9 +339,9 @@
} }
this.showVideoUploadP=true; this.showVideoUploadP=true;
let a = new FormData(); let a = new FormData();
let type = 3; let type = 101;
a.append('file',e.target.files[0]); a.append('file',e.target.files[0]);
a.append('type',type); //0是头像 a.append('type',type);
this.$axios.$post(config.api.post.Resource.file,a).then((res)=>{ this.$axios.$post(config.api.post.Resource.file,a).then((res)=>{
if(res.code === 0){ if(res.code === 0){
this.video =res.data; this.video =res.data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment