|
window.api.download(
{
url: api + "/api/v1/rabbit/file/get/file/" + id,
savePath: "fs://test" + id + this.filename,
report: true,
cache: false,
allowResume: true,
},
function (ret, err) {
if (ret.state == 1) {
var superFile = window.api.require("superFile");
superFile.init(function (ret) {});
superFile.openView({
path: ret.savePath,
rect: {
x: _this.x,
y: _this.y,
w: _this.w,
h: _this.h,
},
});
// toast1.clear()
} else {
// toast1.clear()
}
}
); |
|