微信小程序转成taro后再编译成微信、百度、头条小程序后各自运行都会报错



  • 错误信息:Cannot read property 'spuList' of undefined;at pages/index/index page lifeCycleMethod onLoad functionTypeError: Cannot read property 'spuList' of undefined
    问题是代码逻辑里用到spuList的地方都是在接口返回spuList的时候


登录后回复