vue的history模式部署

 发布到tomcat上     在vue项目打包的时候,html     config/index.js里面的assetsPublicPath写成 '/项目名/'(assetsPublicPath: '/项目名/'),     src/router/index.js里面加上base: '/项目名/', export default new Router({ mode : 'history',
相关文章
相关标签/搜索