超级简单 在vue.config.js里面devServer添加 historyApiFallback: { index: '/index.html' //与output的publicPath } 即可