bluefox1688/vue-cli-multi-page

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

zhuyuanwen opened this issue · 1 comments

@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模式,将原版的#去除,就可以访问了。但是这个多页面的不可以。