zhengyiming
2 天以前 92264a516c8c695c38d4cc9358c50bcfbed36f06
packages/utils/file.ts
@@ -86,3 +86,15 @@
    return fileName;
  });
}
export function openDocument(url: string) {
  Taro.downloadFile({
    url: url,
    success: function (res) {
      var filePath = res.tempFilePath;
      Taro.openDocument({
        filePath: filePath,
      });
    },
  });
}