Comments (3)
前端使用的是路由方式是
browserHistory
,原地刷新会导致 404 的问题, 官方文档的解决方案是 : https://pro.ant.design/docs/deploy-cn#%E4%BD%BF%E7%94%A8-spring-boot .
总结一下,有两种方式:
- 使用
hash
模式来做路由- 添加一个 Controller 来处理
但是文档中没有给出方法 2 的具体代码, 比较好奇有没有什么优雅的方式来实现这个功能, 不知道蚂蚁内部的最佳实践是什么样的?
感谢关注 SOFADashboard !你可以直接针对这个问题进行 PR
from sofa-dashboard.
我不知道怎么做才来提问的 😃 ,打算用 'hash' 模式的话那很简单, 可 Ant design pro 的文档上说强烈建议使用 browserHistory
模式, 我又没有一种很优雅的方式实现这个功能, 这就让我很纠结了.
from sofa-dashboard.
我不知道怎么做才来提问的 😃 ,打算用 'hash' 模式的话那很简单, 可 Ant design pro 的文档上说强烈建议使用
browserHistory
模式, 我又没有一种很优雅的方式实现这个功能, 这就让我很纠结了.
OK,这个问题我尽快 FIX 掉,欢迎关注~
from sofa-dashboard.
Related Issues (20)
- 优化 SOFADashboard 获取动态模块插件方式
- 插件查询之后无法获取应用实例问题
- Probably memory leak risk HOT 2
- ZookeeperRegistryDataCacheImpl may be not threadSafe HOT 3
- The maven dependency dependency in the quick start is written as denpendency HOT 3
- there are problems executing `mvn install` commands HOT 2
- Front-end API and back-end controller do not match HOT 3
- Backend lacks dependencies, can't be packaged, help HOT 1
- TypeError: Cannot read property 'detail' of undefined HOT 2
- Hope to add dashboard support for k8s HOT 1
- we
- ark biz 安装后,前端不能正确显示状态 HOT 3
- 无法将类 com.alipay.sofa.dashboard.client.model.common.HostAndPort中的构造器 HostAndPort应用到给定类型;
- Quick Start Issues HOT 1
- 开源之夏-SOFADashboard 整体功能细分 HOT 5
- 为什么controller中,方法基本都是用@RequestMapping 不指定用@GetMapping或者@PostMapping等指定类型
- 服务面板中目前zookeeper当注册中心时 能获取到RPC服务列表,那如果是sofa-register 当注册中心 如何配置sofa-dashboard。 HOT 1
- npm install failed
- Update SOFABoot to 3.10.0
- 启动运行问题咨询 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sofa-dashboard.