We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我遇到的问题主要是 1.直接访问页面是可以正常运行的比如 http://localhost:2000/#!pages/index/index 首页其他页面等等,使用微信小程序的跳转且关闭当前页面都可以正常渲染,如只跳转保留当前页面就会报错 直接不请求接口。
2.如果是已经打开了两级页面在渲染错误的时候再尝试刷新的话接口也获取不到参数 如从首页http://localhost:2000/#!pages/index/index 跳转进入http://localhost:2000/#!pages/index/index?page_id=18后渲染会如问题1里描述一样会加载失败并且不会请求接口,尝试刷新同样页面也会报错但是会请求接口参数page_id就会是undefined。
当然遇到问题之后我也想通过自己的努力找到解决办法,尝试了很多打印输出。发现的问题是第一次页面正常是进入onload方法了的。。第二次错误的时候就不会进入onload方法
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我遇到的问题主要是
1.直接访问页面是可以正常运行的比如 http://localhost:2000/#!pages/index/index 首页其他页面等等,使用微信小程序的跳转且关闭当前页面都可以正常渲染,如只跳转保留当前页面就会报错 直接不请求接口。
2.如果是已经打开了两级页面在渲染错误的时候再尝试刷新的话接口也获取不到参数
如从首页http://localhost:2000/#!pages/index/index 跳转进入http://localhost:2000/#!pages/index/index?page_id=18后渲染会如问题1里描述一样会加载失败并且不会请求接口,尝试刷新同样页面也会报错但是会请求接口参数page_id就会是undefined。
当然遇到问题之后我也想通过自己的努力找到解决办法,尝试了很多打印输出。发现的问题是第一次页面正常是进入onload方法了的。。第二次错误的时候就不会进入onload方法
The text was updated successfully, but these errors were encountered: