sunniejs / vue-h5-template

:tada:vue搭建移动端开发,基于vue-cli4.0+webpack 4+vant ui + sass+ rem适配方案+axios封装,构建手机端模板脚手架
https://sunniejs.github.io/vue-h5-template/
MIT License
3.18k stars 883 forks source link

history模式的publicPath为 '/'更合适吧 #56

Closed TaurusHoKa closed 2 years ago

TaurusHoKa commented 3 years ago

当前配置publicPath:'./',会导致localhost/a/b这样的路径刷新无法加载的问题。而localhost/a正常显示,从其直接跳转到localhost/a/b也正常显示。但刷新就不OK啦

fonghehe commented 2 years ago

本地开发一般是/,history需要服务端支持