Skip to content

Commit

Permalink
修复ipc的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiAiAc committed Mar 23, 2023
1 parent 966bc44 commit 265a800
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 176 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
"dep:upgrade": "yarn upgrade-interactive --latest"
},
"dependencies": {
"@quiteer/electron-ipc": "^2.0.2",
"@quiteer/electron-ipc": "^2.0.3",
"@quiteer/electron-preload": "^0.0.10",
"echarts": "^5.4.1",
"echarts": "^5.4.2",
"sqlite3": "^5.1.6"
},
"devDependencies": {
Expand All @@ -36,7 +36,7 @@
"@vitejs/plugin-vue": "^4.1.0",
"@vitejs/plugin-vue-jsx": "^3.0.1",
"@vueuse/core": "^9.13.0",
"@youliso/electronic": "^1.0.3",
"@youliso/electronic": "^1.0.4",
"electron": "^22.0.0",
"electron-updater": "^5.3.0",
"eslint": "^8.36.0",
Expand All @@ -46,7 +46,7 @@
"unplugin-auto-import": "^0.15.1",
"unplugin-icons": "^0.15.3",
"unplugin-vue-components": "^0.24.1",
"unplugin-vue-macros": "^1.10.1",
"unplugin-vue-macros": "^1.11.0",
"vue": "^3.2.47",
"vue-router": "^4.1.6",
"vue-tsc": "^1.2.0"
Expand Down
2 changes: 1 addition & 1 deletion render/App.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import { EventKeys, IpcWindowOptions } from '@quiteer/electron-ipc'
import { EventKeys, IpcWindowOptions } from '@quiteer/electron-ipc/web'
import HelloWorld from './components/HelloWorld.vue'
const changeWin = (keys: IpcWindowOptions) => {
Expand Down
4 changes: 1 addition & 3 deletions render/loading/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { init } from 'echarts'
const chartDom = ref<HTMLElement>()
onMounted(() => {
console.log('chartDom: ', chartDom)
chartDom.value && init(chartDom.value).setOption({
graphic: {
elements: [
Expand Down Expand Up @@ -64,7 +62,7 @@ onMounted(() => {
<style scoped>
.login-logo{
height:200px;
width: 800px;
width: 700px;
position: absolute;
top: 50%;
left: 50%;
Expand Down
2 changes: 0 additions & 2 deletions render/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,4 @@ button:focus-visible {
position:absolut;
top:0;
left:0;
width: 800px;
height:90vh;
}
2 changes: 1 addition & 1 deletion typings/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface Window {
$ipc: import('@quiteer/electron-preload').PreloadIpc & import('@quiteer/electron-ipc').ExpandPreloadIpc
$ipc: import('@quiteer/electron-preload').PreloadIpc & import('@quiteer/electron-ipc/web').ExpandPreloadIpc
$clipboard: import('@quiteer/electron-preload').PreloadClipboard
$webFrame: import('@quiteer/electron-preload').PreloadWebFrame
}
Expand Down
Loading

0 comments on commit 265a800

Please sign in to comment.