zhengyiming
2 天以前 62467438f17f552b7f2e72e7e13968a398d55863
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,
      });
    },
  });
}