修改为history模式,本地测试的页面无法访问
zhuyuanwen opened this issue · 1 comments
zhuyuanwen commented
@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
没有
看了一下单页面路由和history原理,感觉是专为单页面设计的,多页面行不通
… 在 2018年6月4日,下午2:23,Echo ***@***.***> 写道:
兄台你解决了吗
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.