在项目的nginx配置一下反向代理,将api请求代理到后端服务,然后再写一下那个路由的单页面配置就行
▼bash复制代码 # 页面转发 location / {...
# 页面转发 location / {...