PanJiaChen / electron-vue-admin

vue electron admin template web: http://panjiachen.github.io/vue-admin-template
3.13k stars 987 forks source link

require is not defined #67

Closed yyccQQu closed 3 years ago

yyccQQu commented 3 years ago

新开页面的 html文件目录在 src/settings/settings.html 引入了一个

<script>
    require('./settings.js')
</script>

运行的时候还是报错。。。 加了

const basicConfigs = {
  width: 800,
  height: 600,
  webPreferences: {
    nodeIntegration: true,
  },
  show: false,
  backgroundColor: '#efefef',
}