29414
This commit is contained in:
@@ -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('打开文档成功')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user