Coder Social home page Coder Social logo

Comments (7)

yunsii avatar yunsii commented on May 31, 2024

感谢反馈,下班后抽个时间看一下

from ant-design-pro-plus.

yunsii avatar yunsii commented on May 31, 2024

如果可以的话建议给个复现 demo 方便排查,抑或把 originalTabsRoutes 贴出来看看呢?

from ant-design-pro-plus.

CementSealing avatar CementSealing commented on May 31, 2024

图片

from ant-design-pro-plus.

yunsii avatar yunsii commented on May 31, 2024

我的意思是 console.log 一下报错时候的 originalTabsRoutes 😂

from ant-design-pro-plus.

CementSealing avatar CementSealing commented on May 31, 2024

location:

{
  "pathname": "/user/login",
  "search": "",
  "hash": "",
  "query": {},
  "key": "t714eu"
}

originalTabsRoutes:

  {
    "path": "/home-page",
    "name": "首页",
    "icon": {
      "type": {},
      "key": null,
      "ref": null,
      "props": {},
      "_owner": null,
      "_store": {}
    },
    "component": {},
    "exact": true,
    "unaccessible": false,
    "locale": "menu.home-page"
  },
  {
    "path": "https://pro.ant.design/docs/getting-started-cn",
    "name": "报表管理",
    "icon": {
      "type": {},
      "key": null,
      "ref": null,
      "props": {},
      "_owner": null,
      "_store": {}
    },
    "target": "_blank",
    "exact": true,
    "unaccessible": false,
    "locale": "menu.report-management"
  },
  {
    "path": "/index.html",
    "redirect": "/home-page",
    "exact": true,
    "unaccessible": false
  }
]```

好像当routes的path配置为url时会出现报错, 例如以上的 `"path": "https://pro.ant.design/docs/getting-started-cn",`

from ant-design-pro-plus.

yunsii avatar yunsii commented on May 31, 2024

那大概率是这个原因了,我回头看看

from ant-design-pro-plus.

yunsii avatar yunsii commented on May 31, 2024

@CementSealing 刚才突然想到,你可以暂时先把 routes 中的 https:// 开头的路由过滤掉试试

from ant-design-pro-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.