背景:hash路由,微信将#之后截断了。。不能到指定页面。

1.路由模式用history
new Router({
  mode: 'history',
  routes: [
    {
     ...

2.配置服务器
https://router.vuejs.org/zh-cn/essentials/history-mode.html

猜你喜欢

转载自1971161579.iteye.com/blog/2419915