Skip to content

Commit

Permalink
fix: 修复Ai菜单不能正确关闭的问题 (#261)
Browse files Browse the repository at this point in the history
通过调用 setIsAiPanelOpen(false) 来确保 AI 面板在`失去焦点`时被隐藏
  • Loading branch information
Littlefean authored Jan 21, 2025
2 parents 0cc20de + 19484a1 commit 40f4edc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ export default function App() {
onClick={() => {
setIsMenuOpen(false);
setIsStartFilePanelOpen(false);
setIsAiPanelOpen(false);
}}
onContextMenu={(e) => e.preventDefault()}
>
Expand Down

0 comments on commit 40f4edc

Please sign in to comment.