微信小程序中出现Invoking Page() in async task.问题


      在做项目中需要让页面跳到外网,用到了<web-view src=""> </web-view>组件,需要新建一个文件放这个组件,调接口的时候链接连到这个页面,当我把参数传过去的时候,出现了 page[pages/XXX/XXX] not found.May be caused by :1. Forgot to add page route in app.json.2. Invoking Page() in async task.导致参数没有传过去,百度了一下是因为在app.json里面的路由填写顺序问题,最后贴上我的代码:

                     data:{     

                               

                                      site:''//外网地址

       

                          }    

                url: '/pages/index/vacancy/vacancy?site=' + uri,
 
                     <web-view src="{{site}}"> </web-view>
                        onLoad: function (options) {
                               console.log(options)
                               this.setData({
                                     site: options.site
                            })
                                        console.log(this.data.site)
                           },
 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM