This commit is contained in:
shijingjing
2022-04-29 13:50:45 +08:00
parent 217e93a359
commit 7aeb036a76

View File

@@ -256,7 +256,7 @@
index: 0,
url: file.accessUrl
}]
if(file.postfix == ".png" || file.postfix == "jpg") {
if(file.postfix == ".png" || file.postfix == ".jpg") {
uni.previewImage({
urls: fileList.map(v => v.url),
current: file.accessUrl
@@ -265,9 +265,10 @@
uni.downloadFile({
url: file.accessUrl,
success: function (res) {
const filePath = res.tempFilePath
var filePath = res.tempFilePath
uni.openDocument({
filePath: filePath,
showMenu: true,
success: function (res) {
console.log('打开文档成功')
}