|
- 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) {
- Toast.clear({
- clearAll: true,
- });
- if (ret) {
- // path = ret.savePath;
- 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,
- },
- });
- } else {
- }
- }
- );
复制代码 |
|