mirror of
https://github.com/yuruotong1/autoMate.git
synced 2026-03-22 04:57:18 +08:00
✨ main/code/window.ts: 移除注释并修复代码格式
📝 renderer/src/components/Search/index.tsx: 更新设置按钮的点击事件
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()}}
|
||||
/>
|
||||
<Input
|
||||
placeholder="请输入内容"
|
||||
|
||||
Reference in New Issue
Block a user