wupengfei
2 天以前 51bcadcc5ece12fc430f0f09bf649326360febb7
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,
      });
    },
  });
}