diff --git a/vue.config.js b/vue.config.js index 8d968d7f..93b2193f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -42,6 +42,7 @@ module.exports = { }, pluginOptions: { electronBuilder: { + nodeIntegration: true, //参考https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html extends: null, externals: [ "vue",