在打开一个html文件时,wx.openDocument的showMenu失效,不显示右上角菜单
wx.downloadFile({
header: request.requestHeader(),
url: url,
filePath: rootPath,
success(res) {
const filePath = res.filePath
console.log('本地路径', filePath)
wx.openDocument({//打开文件
filePath: filePath,
showMenu: true, //显示右上角菜单
success: function (res) {
console.log('打开文档成功')
}
})
}
})

