在项目根目录新建vue.config.js文件
module.exports = { // 在这里配置路径 publicPath: './' }
然后重新打包项目
vue-cli 配置详情: https://cli.vuejs.org/zh/config/#baseurl
在项目根目录新建vue.config.js文件
module.exports = { // 在这里配置路径 publicPath: './' }
然后重新打包项目
vue-cli 配置详情: https://cli.vuejs.org/zh/config/#baseurl