refactor: better script and vite-config

This commit is contained in:
草鞋没号
2022-02-08 11:14:05 +08:00
parent 6e184ad54c
commit 77046fc5b5
10 changed files with 144 additions and 141 deletions

View File

@@ -14,6 +14,7 @@ import HelloWorld from './components/HelloWorld.vue'
</div>
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
<div class="static-public">
asjdfljasldfjasldfjlsdjflskjdf-----------
Place static files into the <code>src/renderer/public</code> folder
<img style="width:90px;" :src="'./images/node.png'" />
</div>

View File

@@ -5,5 +5,10 @@ createApp(App)
.mount('#app')
.$nextTick(window.removeLoading)
console.log('fs', window.fs)
console.log('ipcRenderer', window.ipcRenderer)
// console.log('fs', window.fs)
// console.log('ipcRenderer', window.ipcRenderer)
// Usage of ipcRenderer.on
window.ipcRenderer.on('main-process-message', (_event, ...args) => {
console.log('[Receive Main-process message]:', ...args)
})