wx.chooseImage在指定只能拍照模式下,在onLoad函数中调用,ios下没有反应?

发布于 7 年前作者 yansu11098 次浏览最后编辑 7 年前来自 ask

wx.chooseImage在指定只能拍照模式下,在onLoad函数中调用,ios下没有反应?

onLoad(){
  wx.chooseImage({
          count: 1,
          sourceType: ['camera'],
          success (res) {
          console.log('tempFilePaths==============')
        },
        fail (err) {
          console.log('fail==============', err)
        }
}

1 回复
fujie
fujie1 楼5 年前

你好,重新进入页面再试试?