在项目目录下建立vue.config.js, 并填入以下内容: module.exports = { publicPath: "" }; 注意路径是/vue.config.js,而不是/src/vue.config.js