错误日志:
[phone]10-08 08:11:30.349 15108 28552 E 03900/Ace: [manifest_router.cpp(GetPagePath)-(0)] [Engine Log] can't find this page /pages/SecondPage path
[phone]10-08 07:39:43.889 18920 13992 E 03900/Ace: [manifest_router.cpp(GetPagePath)-(0)] [Engine Log] can't find this page pages/SecondPage path
[phone]10-08 07:39:43.889 18920 13992 W 03900/Ace: [frontend_delegate_declarative.cpp(StartPush)-(0)] [Engine Log] this uri not support in route push.
原因1:
main_pages.json 文件
没有配置新的页面路径,或者配置错误。
路径最前面不能有斜杠
错误路径: /pages/…
正确路径:pages/…
错误示例:
原因2:
使用的时候,路由设置的url错误
路径要与main_pages.json文件内配置的保持一致。
路径最前面不能有斜杠
错误示例: