From e9ca66253b5f2f2de8a5b90a3064a2441a04d219 Mon Sep 17 00:00:00 2001 From: yuruo Date: Tue, 11 Jun 2024 14:55:39 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20main/code/window.ts:=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E6=B3=A8=E9=87=8A=E5=B9=B6=E4=BF=AE=E5=A4=8D=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=A0=BC=E5=BC=8F=20=F0=9F=93=9D=20renderer/src/compo?= =?UTF-8?q?nents/Search/index.tsx:=20=E6=9B=B4=E6=96=B0=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/autoMate/src/main/code/window.ts | 2 +- ui/autoMate/src/renderer/src/components/Search/index.tsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/autoMate/src/main/code/window.ts b/ui/autoMate/src/main/code/window.ts index 839a576..23d46a4 100644 --- a/ui/autoMate/src/main/code/window.ts +++ b/ui/autoMate/src/main/code/window.ts @@ -21,7 +21,7 @@ export function createWindow(): BrowserWindow { // Create the browser window. } }) - // win.webContents.openDevTools() + win.webContents.openDevTools() win.on('ready-to-show', () => { win.show() }) diff --git a/ui/autoMate/src/renderer/src/components/Search/index.tsx b/ui/autoMate/src/renderer/src/components/Search/index.tsx index c2b1431..fc3ec59 100644 --- a/ui/autoMate/src/renderer/src/components/Search/index.tsx +++ b/ui/autoMate/src/renderer/src/components/Search/index.tsx @@ -15,8 +15,9 @@ export default function Search(): JSX.Element { strokeWidth={4} className="cursor-pointer" onClick={()=>{ - window.api.openConfigWindow() - }} + alert("设置") + console.log("点击了设置") + window.api.openConfigWindow()}} />