在打开一个html文件时,wx.openDocument的showMenu失效,不显示右上角菜单
发布于 6 年前 作者 fangliang 7754 次浏览 来自 官方Issues

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('打开文档成功')

}

})

}

})

1 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

回到顶部