一个很久没有运行的项目,以前都是可以正常运行的,后面就报错了!!!
显示页面找不到。如下图所示:
directive: “default-src ‘none‘“. Note that ‘img-src‘ was not explicitly set, so ‘default-src‘...错误

找到的原因:我打包成apk时把config目录下的index.js 文件里assetsPublicPath的路径改成了’./assetsPublicPath’。把两个assetsPublicPath的路径改回’/'再运行就可以了。

directive: “default-src ‘none‘“. Note that ‘img-src‘ was not explicitly set, so ‘default-src‘...错误

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-07-21
  • 2021-10-12
  • 2021-08-19
  • 2021-10-14
猜你喜欢
  • 2022-01-29
  • 2021-06-13
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2022-12-23
相关资源
相似解决方案