bluefox1688 / vue-cli-multi-page

因时间精力有限,项目已不再维护,请慎重使用,vue2-cli-vux2-multe-page,使用了webpack2+vuejs2+vuxUI2的多页面脚手架
829 stars 239 forks source link

修改为history模式,本地测试的页面无法访问 #76

Open zhuyuanwen opened 6 years ago

zhuyuanwen commented 6 years ago

@bluefox1688 实际项目中,访问路径需要去掉“#”。

原本的hash模式路径http://localhost:8091/views/router/details.html#/list, 在前端修改为mode: "history"后无法访问,而http://localhost:8091/views/router/details.html/list 路径也不对。

请问该怎么解决? (本身的跟地址http://localhost:8091/views/router/details.html, 在history模式下,也是无法访问的。)

已经在2个单页面的项目中,尝试过history模式,将原版的#去除,就可以访问了。但是这个多页面的不可以。

zhuyuanwen commented 6 years ago

没有 看了一下单页面路由和history原理,感觉是专为单页面设计的,多页面行不通

在 2018年6月4日,下午2:23,Echo notifications@github.com 写道:

兄台你解决了吗

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.