vue项目访问路径添加项目名称
前言转载地址:https://www.freesion.com/article/153566540/步骤:config/index.js添加内容router/index.js添加内容index.html添加内容
·
前言
相关文档:
- vue-cli 项目,打包后js,css,img静态资源找不到:https://www.jianshu.com/p/9a4690f5bdce
- 生产环境发布踩坑:https://blog.csdn.net/u013025674/article/details/100707435
转载地址:https://www.freesion.com/article/153566540/
步骤:
- config/index.js添加内容
ps:此处的配置与转载内容的不一样。前两处多了项目名称,第三处结尾多了斜杠
- router/index.js添加内容
- index.html添加内容
补充
nginx发布vue项目,刷新页面会404:
https://www.jianshu.com/p/ca74eab7c33a
更多推荐
已为社区贡献17条内容
所有评论(0)