2020-08-31 09:50:57 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
|
|
|
// vite 会编译 import 的形式;所以 electron 及 node.js 内置模块用 require 形式
|
|
|
|
const { ipcRenderer } = require('electron')
|
2021-02-17 22:27:40 +08:00
|
|
|
// import { store, isdev } from '/utils/index'
|
2020-08-31 09:50:57 +08:00
|
|
|
|
2020-09-25 11:39:39 +08:00
|
|
|
import './index.css'
|
2020-09-02 09:19:07 +08:00
|
|
|
|
|
|
|
console.log('ipcRenderer:', ipcRenderer)
|
2021-02-17 22:27:40 +08:00
|
|
|
// console.log('Store', store)
|
|
|
|
// console.log('electron is dev', isdev)
|
2020-08-31 09:50:57 +08:00
|
|
|
|
2020-12-24 18:38:33 +08:00
|
|
|
createApp(App as any).mount('#app').$nextTick(window.ClosePreloadLoading)
|