页面路径index.html位于localhost:8080/opinion/目录,
API接口路径位于localhost:8080/opinion/rest/...下。
应该怎样配置服务器使浏览器请求带有react-router路径的url(如:localhost:8080/opinion/about)时返回index.html,而且不影响API接口的调用。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
走同样的路,发现不同的人生