electron常见问题
# 构建时出现 is not supported since 3.0 anymore. Please move 'build' into the development package.json
把 build
从 package.json
中移除,在 vue.config.js
中写
module.exports = {
runtimeCompiler: true,
pluginOptions: {
electronBuilder: {
builderOptions: {
// build配置在此处
// options placed here will be merged with default configuration and passed to electron-builder
}
},
},
};
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# 生产环境下出现AxiosError
webPreferences: {
webSecurity: false // 添加此属性
}
1
2
3
2
3
上次更新: 2022/06/10, 17:06:00