文档服务地址:http://47.92.0.57:3000/ 周报索引地址:http://47.92.0.57:3000/s/NruNXRYmV

Commit b0310f55 by 李严凡

传建任务接口修改

parent 2cf0440c
......@@ -357,12 +357,9 @@
},
methods: {
uploadFile(fileObj){
let formData = new FormData();
let formData = new window.FormData();
formData.set("file",fileObj.file);
this.axios({
method:'post',
url:'http:://localhost:9100/api/files/upload',
params:formData,
this.axios("/files/upload",formData,{
headers:{
"Content-type":"multipart/form-data"
}
......@@ -396,7 +393,7 @@
uploadSuccessL(response,file,fileList){
this.fName=file.name;
this.url=file.url;
this.dynamicValidateForm.layerDoamins[this.Index ].fileName.push({name:this.fName,url:this.url});
this.dynamicValidateForm.layerDomains[this.Index ].fileName.push({name:this.fName,url:this.url});
// console.log(this.fName);
// console.log(this.dynamicValidateForm.layerDoamins[this.Index].fileName);
},
......
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