vue配置vue.config.js解决打包以后找不到资源页面空白问题

58 阅读1分钟
vue.config.js写入

module.exports = { 
    publicPath: "./" , // 设置相对路径
};
router/index.jsmode: "history", 注释掉,重新打包