Jelajahi Sumber

fix: electron控制支持

kindring 10 bulan lalu
induk
melakukan
da1701610f
1 mengubah file dengan 9 tambahan dan 9 penghapusan
  1. 9 9
      src/util/pageHandle.ts

+ 9 - 9
src/util/pageHandle.ts

@@ -1,19 +1,19 @@
 import {App} from "vue";
 
-// import {ipcRenderer} from "electron";
+import {ipcRenderer} from "electron";
 import {IpcAction, windowAction} from "../tools/IpcCmd.ts";
 import {registerWindowData} from "../types/appConfig.ts";
 
 // 判断是否为 webMode
 
-const ipcRenderer = {
-    on: (code: string, _: Function)=>{
-        console.log(code)
-    },
-    send: (code: string, data: any)=>{
-        console.log(code, data)
-    },
-};
+// const ipcRenderer = {
+//     on: (code: string, _: Function)=>{
+//         console.log(code)
+//     },
+//     send: (code: string, data: any)=>{
+//         console.log(code, data)
+//     },
+// };
 
 function winHandle(ipc: Electron.IpcRenderer, windowName: string, action: IpcAction): boolean{
     let sendCode = action.code;