vue项目build之后,dist文件下index.html打开为空白页 build: { dev: { assetsPublicPath:"./", //资源公共路径 打包时候需要 ./ } } // 运行时候:package.json文件: scripts: { "dev":" --host 192.168.3.45" , // 使用ip地址访问 ,打包时候去掉 } // router下的index.js mode:'history', // build打包时候要注释掉