摘要: 1:在根目录下增加vue.config.js文件,将publicPath设置为'./' module.exports = { outputDir: 'regulations', assetsDir: 'static', publicPath: './'} 2:如果路由为history模式,找到路由下 阅读全文