vue打包发布在spingboot项目中mapping与vue-router路由的处理

以下例子springboot后端地址为:localhost:7080/pingandai vue前端地址为:locahost:8080/pingandai/ 1、如果路由模式设置的是history。 那么最好带上base,(base是根目录的地址,比如你在页面上访问localhost:8080/b,那么它会自动跳转到localhost:8080/pingandai/b路径上)   打包完成后(打包
相关文章
相关标签/搜索