赞
踩
公司给我安排了一个项目,一边做一边学习ArkTs语言
用户支付时,点击金额后继续点击转账,其中需要用到路由跳转。结果跳转转账成功页面失败,经过Log日志检查后发现原因如下:
在pages页面创建success页面后
还需要在resources文件夹下的main_pages.json配置页面(注意不是“/pages/success”)
经过编译后依然报错,报错信息如下:
[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.
经过查阅后发现在跳转逻辑处,页面跳转路径必须严格按照main_pages.json的配置填写
经过修改后,能正常实现页面跳转逻辑
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。