vue设置路由为history 模式,react设置路由为BrowserRouter。
location / {
root D:/workSpace/project/build;
try_files $uri /index.html;
}
本文介绍了如何在Vue中设置路由为history模式,并在React中使用BrowserRouter进行路由配置。此外还提供了一个Nginx配置示例,用于处理前端路由。
vue设置路由为history 模式,react设置路由为BrowserRouter。
location / {
root D:/workSpace/project/build;
try_files $uri /index.html;
}
6388
4096
1405
374

被折叠的 条评论
为什么被折叠?