收藏
回答

"pages/index/index" has not been registered yet?

app.json

{
  "pages": [
    "pages/index/index",
    "pages/logs/logs",
    "pages/articles/index",
    "pages/user/index",
    "pages/weibo/index",
    "pages/detail/index"
  ],
  "tabBar": {
    "list": [
      {
        "pagePath""pages/articles/index",
        "text""文章"
      },
      {
        "pagePath""pages/weibo/index",
        "text""微博"
      }
    ]
  },
  "window": {
    "backgroundTextStyle""light",
    "navigationBarBackgroundColor""#fff",
    "navigationBarTitleText""舆情工具",
    "navigationBarTextStyle""black"
  },
  "style""v2",
  "sitemapLocation""sitemap.json",
  "lazyCodeLoading""requiredComponents"
}


我的pages/index/index是个白页, 什么都没做, 同时, 在app.js中, 获取完系统配置, 就自动切到文章tab了

正常加载无影响, 只是发现在autoRelaunch的时候, 会变成白页, 检查下只有这一个错误, 刷新重新加载的时候也有这个错误

Page "pages/index/index" has not been registered yet

查过几个提出类似问题的, 似乎只有提及可能前面加载的页存在code报错导致无法顺序加载到这个页, 但是index是第一页, 并且没做任何事

各位谁可有原因和解决方案

回答关注问题邀请回答
收藏

1 个回答

  • 大山
    大山
    2024-11-07

    退出开发者工具重新打开或者切换开发者工具版本试试。

    2024-11-07
    有用
    回复
登录 后发表内容