1、出现空白页
javascript
1.1 打包路径:
module.exports = {
publicPath:'./', //修改为绝对路径
}
修改完打包路径后build可以展示页面

1.2 路由模式:
项目上线要求是history模式,需要后端做重定向
前端自测可以使用hash模式
2、代理和环境变量
问题:打包前可以获取数据,build后打开就报错了


vue-cli中文官网Vue CLI