2021-05-15 20:57:32 +08:00
|
|
|
import '@src/common/patch'
|
2020-08-31 09:50:57 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
2021-05-15 16:30:59 +08:00
|
|
|
import fs = require('fs')
|
2021-05-15 14:53:43 +08:00
|
|
|
import { ipcRenderer } from 'electron'
|
2021-05-15 16:30:59 +08:00
|
|
|
import Store from 'electron-store'
|
2020-09-25 11:39:39 +08:00
|
|
|
import './index.css'
|
2020-09-02 09:19:07 +08:00
|
|
|
|
|
|
|
console.log('ipcRenderer:', ipcRenderer)
|
2021-05-28 18:14:42 +08:00
|
|
|
// Configuration name causes hot updates to be slow | 传递 name 后会导致热更新很慢
|
|
|
|
// console.log('electron-store', new Store({ name: 'electron-vue' }))
|
|
|
|
// https://github.com/caoxiemeihao/electron-vue-vite/issues/10
|
|
|
|
console.log('electron-store', new Store())
|
2020-08-31 09:50:57 +08:00
|
|
|
|
2021-05-15 14:53:43 +08:00
|
|
|
createApp(App)
|
|
|
|
.mount('#app')
|
|
|
|
.$nextTick(window.ClosePreloadLoading)
|