vue的history模式部署

 發佈到tomcat上     在vue項目打包的時候,html     config/index.js裏面的assetsPublicPath寫成 '/項目名/'(assetsPublicPath: '/項目名/'),     src/router/index.js裏面加上base: '/項目名/', export default new Router({ mode : 'history',
相關文章
相關標籤/搜索