vue项目,npm install结束,但是报了一个错,如下
vue 报错:Refused to load the image because it violates the following Content Security按照网上的指示,执行了 npm install autoconf,最后执行npm run dev, 浏览器中报错如下
vue 报错:Refused to load the image because it violates the following Content Security
而且vscode终端中报了很多错,都是图片找不见,按网上搜的,尝试修改config/index.js中的 assetsPublicPath值为 ‘/’,并不管用,最后删除node_modules和package-lock.json, 重新安装依赖,这次安装依赖没有报任何错,然后重启了vscode,执行npm run dev,ok了,没有再报错。不明所以的解决了。。。

相关文章:

  • 2021-09-04
  • 2021-06-24
  • 2021-09-16
  • 2021-07-30
  • 2021-06-28
  • 2021-05-03
  • 2021-11-28
  • 2021-04-04
猜你喜欢
  • 2021-12-17
  • 2021-07-26
  • 2021-08-09
  • 2021-07-05
  • 2021-12-16
  • 2021-06-13
相关资源
相似解决方案