瀏覽代碼

fix: electron控制支持

kindring 10 月之前
父節點
當前提交
da1701610f
共有 1 個文件被更改,包括 9 次插入9 次删除
  1. 9 9
      src/util/pageHandle.ts

+ 9 - 9
src/util/pageHandle.ts

@@ -1,19 +1,19 @@
 import {App} from "vue";
 import {App} from "vue";
 
 
-// import {ipcRenderer} from "electron";
+import {ipcRenderer} from "electron";
 import {IpcAction, windowAction} from "../tools/IpcCmd.ts";
 import {IpcAction, windowAction} from "../tools/IpcCmd.ts";
 import {registerWindowData} from "../types/appConfig.ts";
 import {registerWindowData} from "../types/appConfig.ts";
 
 
 // 判断是否为 webMode
 // 判断是否为 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{
 function winHandle(ipc: Electron.IpcRenderer, windowName: string, action: IpcAction): boolean{
     let sendCode = action.code;
     let sendCode = action.code;