vue项目中引用static目录下的静态资源报错

在config/index.js中 dev中

// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
proxyTable: {},
/********************/
assetsPublicPath 的路径一定要定为'/'


原文地址:https://www.cnblogs.com/yihuite-zch/p/10599098.html