当前位置:首页
> nginx 404页面 第2页
vue项目本地开发完成后部署到服务器后报404是什么原因呢?
vue路由配置:const router = new VueRouter({ base: process.env.BASE_URL, //hash模式下部署到服务器访问没问题,history就不行,需要在服务器上配置 mode: 'history', routes }...