页面找不到?

发布于 6 年前作者 qiangxue5454 次浏览最后编辑 6 年前来自 ask

为毛我在开发工具里面运行是正常的,在真机预览就给我一个警告?

Page[pages/list/list] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task.

然后页面还是显示了,但并没有执行里面的生命周期方法,我在onLoad里面写了一句

console.log(“test”)

都没有打印出来

1 回复
xiulandai
xiulandai1 楼4 年前

同步设置事件是什么意思