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

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

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

process.env['ELECTRON_DISABLE_SECURITY_WARNINGS'] = 'true'
就可以了。如下图:
electron-vue 运行项目时会报Electron Security Warning (Node.js Integration with Remote Content)警告-LMLPHP
是不是看起来舒服多了
05-23 01:08