5***@qq.com
5***@qq.com
  • 发布:2021-08-02 12:48
  • 更新:2021-08-02 20:50
  • 阅读:534

uni-starter 替换首页报错 undefined is not an object (evaluating 'pages[pages.length - 1].route')

分类:uniCloud

uni-starter 项目 的 page.json中的这段代码只要换成我自己的页面
点击tabbar就报错
"condition": {
"list": [{
"path": "pages/home/home"
},

这个首页是不能替换的吗

12:45:25.666 TypeError: undefined is not an object (evaluating 'pages[pages.length - 1].route') ERROR
12:45:26.735 [ERROR] : [JS Framework] Failed to execute the callback function:
12:45:26.735 TypeError: undefined is not an object (evaluating 'pages[pages.length - 1].route')
ERROR
12:45:27.731 [ERROR] : [JS Framework] Failed to execute the callback function:
12:45:27.731 TypeError: undefined is not an object (evaluating 'pages[pages.length - 1].route') __ERROR

2021-08-02 12:48 负责人:DCloud_uniCloud_JSON 分享
已邀请:
DCloud_uniCloud_JSON

DCloud_uniCloud_JSON

你换完之后重新编译了吗?如果仍然有问题私发我你的QQ我远程协助你瞧瞧

该问题目前已经被锁定, 无法添加新回复