14 lines
393 B
TypeScript
Raw Normal View History

2020-08-31 09:50:57 +08:00
import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
// vite 会编译 import 的形式;所以 electron 及 node.js 内置模块用 require 形式
const { ipcRenderer } = require('electron')
2020-09-02 09:19:07 +08:00
const Store = require('electron-store')
2020-08-31 09:50:57 +08:00
2020-09-02 09:19:07 +08:00
const store = new Store
console.log('ipcRenderer:', ipcRenderer)
console.log('Store', store)
2020-08-31 09:50:57 +08:00
createApp(App as any).mount('#app')