想动态决定启动页。本来是通过空白页的跳转。今天试了下onlauch中使用redirectTo,结果页面可以跳转,wx.chooselocation当 安卓手机 - 繁体中文 在澳门无法搜索#微信小程序开发 ...。但是控制台报错
下面贴出来错误信息,项目是新建的普通模板,看消息,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 |
2 |
> 3 |
| ^
4 | {{index + 1}}. {{log}}
5 |
6 | (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.
(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)