在打开一个html文件时,wx.openDocument的showMenu失效,不显示右上角菜单

发布于 7 年前作者 fangliang7932 次浏览最后编辑 7 年前来自 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 回复
ncai
ncai1 楼5 年前

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