收藏
回答

调用miniprogram-automator里的方法,在mac下报错是什么原因?

export async function startEmulator(bvData ,orderId) {
  return new Promise((resolve, reject) => {
    automator
      .launch({
        cliPath: config.cliPath,
        projectPath: config.projectPath,
        projectConfig: {
          setting: {
            compileHotReLoad: false,
            skylineRenderEnable: false,
          },
        },
      })
      .then(async (miniProgram) => {

        const page = await miniProgram.reLaunch('/pages/index/index')
          })
})
}


一旦调用const page = await miniProgram.reLaunch('/pages/index/index')该方法在ios下就会报错
Cannot read property 'getCurrentPagesByDomain' of undefined


miniprogram-automator:"0.12.1"

微信开发者工具:Nightly 1.06.2503262



回答关注问题邀请回答
收藏
登录 后发表内容