Vue错误集

  1. vue-router使用hash模式时,页面点击跳转或者刷新正常.使用history模式时,页面点击跳转正常,刷新时报错404 Cannot GET;

解决方法: webpack-dev-server添加配置historyApiFallback: true

你可能感兴趣的:(Vue错误集)