history模式下 vue.config.js 中 publicPath 不能设置为相对路径 vue-cli3.0下:在 vue.config 里设置 publicPath: '/' https://cli.vuejs.org/zh/config/#publicpath