electron-vue 运行项目时会报Electron Security Warning (Node.js Integration with Remote Content)警告

使用electron-vue时,运行项目总会出现如下警告:

 

 

 

 解决方法:在src/renderer/main.js中加入:

process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
就可以了。如下图:
是不是看起来舒服多了

 

 

 

posted @ 2020-04-17 15:12  yll~  阅读(3948)  评论(0)    收藏  举报