vue3使用 createWebHashHistory 方式,调用后端接口使用代理的方式,没有问题
如:http://localhost:3000/api/xxx-xxx/log/usual/current?current=1&size=15
vue3使用 createWebHistory方式,调用后端接口使用代理的方式,出现问题
如:http://localhost:3000/Account/api/xxx-xxx/log/usual/current?current=1&size=15
其中/Account为一级菜单的路由
createWebHistory 路由模式路径不带#号(生产环境下不能直接访问项目,需要nginx转发)
createWebHashHistory 路由模式路径带#号