• electron-vue编程的时候出现如下错误:
    Electron Security Warning (Node.js Integration with Remote Content) This renderer process has Node.js integration enabled and attempted to load remote content. This exposes users of this app to severe security risks.
    在这里插入图片描述
  • 如果出现上述warning,可以在main.js添加:
process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
  • 如下:
    在这里插入图片描述
  • 结局很完美:

在这里插入图片描述

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐