Commit c1ca728f authored by liujiangnan's avatar liujiangnan

添加上传文件接口

parent bce5060a
......@@ -13,7 +13,7 @@
[nzAccept] = "'.mp3'"
[nzShowUploadList]="false"
[nzBeforeUpload]="beforeUpload">
<!--nzAction="/user/resource"-->
<!-- nzAction="/user/resource" -->
<!--(nzChange)="handleChange($event)"-->
......
......@@ -47,6 +47,12 @@
alert('数据保存失败!');
}
});
},
uploadUrl: function(){
return net.getUploadFileURL();
},
uploadData: function(){
return net.getAjaxData("uploadFile","");
}
}
} else {
......
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