lingxiaoyi / Taro-navigation-bar

微信小程序自定义导航栏组件,navigation,完美适配全部手机
462 stars 72 forks source link

自定义导航条只能使用Navigator来进行页面跳转吗?我使用Taro.navigateTo会页面报错 #18

Open yjj891896039 opened 4 years ago

yjj891896039 commented 4 years ago

错误: index.js:272 Uncaught (in promise) TypeError: Cannot convert undefined or null to object at t.assign () at WithLogin.Connect (index.js:272) at new WithLogin (mixin.js:30) at Object.taro$$1.(:53757/appservice/anonymous function) [as navigateTo] (http://127.0.0.1:53757/appservice/npm/@tarojs/taro-weapp/dist/index.js:3404:29) at index.js:98

lingxiaoyi commented 4 years ago

重启开具 或者重新打包代码试试

yjj891896039 commented 4 years ago

重启了也会报错,我要navigateTo的目标页面也是有自定义导航条的,如果目标页面没有自定义导航条就不会报错

yjj891896039 commented 4 years ago

已解决,我的页面代码有两个注解@connect和@withComponent,我把@connect放到@withComponent上面就不会报错了