沙箱环境支持下载

1.x
tanghc 5 years ago
parent a06974504a
commit 6d8eaf72f3
  1. 2
      sop-website/website-front/pages/sandbox/sandbox.js

@ -227,7 +227,7 @@ function postFile(data, formData) {
function downloadFile(data) {
$('.dl-form').remove();
var url = SopConfig.url + '/sandbox/test';
var form = $('<form class="dl-form"></form>').attr("action", url).attr("method", "get");
var form = $('<form class="dl-form"></form>').attr("action", url).attr("method", "post");
for(var key in data) {
form.append($("<input>").attr("type", "hidden").attr("name", key).attr("value", data[key]));
}

Loading…
Cancel
Save