|
[插件使用]
superFile重复打开的问题
[复制链接]
本帖最后由 blacky 于 2022-1-7 14:55 编辑
模块:superFile
平台:安卓
问题:使用openView方法打开一个文档,第一次可以打开,然后关闭模块所在的win,再次打开win页面调用openView打开同一个文档,就会一直显示正在加载文档
代码:
- api.download({
- url: "https://yangfujing-test.oss-cn-beijing.aliyuncs.com/admin/c55d89f1-7533-45e0-b198-b337337fcc8f/2021/12/20/74703637867019.docx",
- report: true,
- }, function (ret, err) {
- if (ret.state == 0) {
- console.log(ret.percent);
- } else if (ret.state == 1) {
- var superFile = api.require('superFile');
- superFile.openView({ path: ret.savePath });
- } else {
- api.toast("下载失败,请重试")
- }
- });
复制代码
|
|