4545关注15154浏览
想动态决定启动页。本来是通过空白页的跳转。今天试了下onlauch中使用redirectTo,结果页面可以跳转,但是控制台报错
下面贴出来错误信息,项目是新建的普通模板,看消息,Log页面进入了2次。
onLauch没办法终止启动页的跳转?导致重复渲染
app launch
logs.js? [sm]:9 log onload
VM6987:1 Wed Mar 21 2018 20:20:00 GMT+0800 (中国标准时间) WXML Runtime warning
VM6987:2 ./pages/logs/logs.wxml
(anonymous) @ VM6987:2
VM6987:3 Now you can provide attr "wx:key" for a "wx:for" to improve performance.
1 | <!--logs.wxml-->
2 | <view class="container log-list">
> 3 | <block wx:for="{{logs}}" wx:for-item="log">
| ^
4 | <text class="log-item">{{index + 1}}. {{log}}</text>
5 | </block>
6 | </view>
(anonymous) @ VM6987:3
logs.js? [sm]:9 log onload
VM6989:1 Wed Mar 21 2018 20:20:00 GMT+0800 (中国标准时间) 渲染层错误
VM6989:2 Expected updated data but get first rendering data
(anonymous) @ VM6989:2
VM6990:1 Wed Mar 21 2018 20:20:00 GMT+0800 (中国标准时间) 渲染层错误
VM6990:2 webviewScriptError
Expected updated data but get first rendering data;Expected updated data but get first rendering data
Error: Expected updated data but get first rendering data
at _ (http://127.0.0.1:51707/__pageframe__/__dev__/WAWebview.js:20:20536)
at http://127.0.0.1:51707/__pageframe__/__dev__/WAWebview.js:20:19690
at http://127.0.0.1:51707/__pageframe__/__dev__/WAWebview.js:20:24504
at c.<anonymous> (http://127.0.0.1:51707/__pageframe__/__dev__/WAWebview.js:3:25890)
at c.emit (http://127.0.0.1:51707/__pageframe__/__dev__/WAWebview.js:4:15091)
at http://127.0.0.1:51707/__pageframe__/__dev__/WAWebview.js:5:24198
at e.(anonymous function) (http://127.0.0.1:51707/__pageframe__/__dev__/WAWebview.js:5:8571)
at d (http://127.0.0.1:51707/__pageframe__/pageframe.html:17:2409)
at f.a.registerCallback (http://127.0.0.1:51707/__pageframe__/pageframe.html:17:2557)
at m.forEach (http://127.0.0.1:51707/__pageframe__/pageframe.html:17:858)
-
至过去的我
2044人对此回答表示赞同
我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多> -
潇潇暮雨
12人对此回答表示赞同
我也遇到这个问题了,请问是什么原因
展开120回复分享发布于 6年前评论(0)
收起评论