【发布时间】:2020-01-23 07:49:37
【问题描述】:
我目前正在使用 Vue 和 Electron,并希望使用
重新启动应用程序import { app } from 'electron';
export default {
name: 'Home',
methods: {
restartApp() {
app.relaunch()
app.exit()
}
}
}
但是当我导入电子时,我得到了fs.existsSync is not a function
我也尝试过使用
const remote = require('electron');
import { app } from remote;
还有
const remote = window.require('electron')
回复我window.require is not a function
【问题讨论】:
标签: javascript node.js vue.js electron