From a073d866298ae4bb01a90ab701cb3d9632472e7e Mon Sep 17 00:00:00 2001 From: yuanyxh <15766118362@139.com> Date: Mon, 14 Oct 2024 17:52:02 +0800 Subject: [PATCH] chore: some --- src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 647ef41..699e6c5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -117,6 +117,8 @@ const App: React.FC = (props) => { { signal: abortController.signal } ); + setIsSmallScreen(window.innerWidth <= SMALL_SCREEN_WIDTH); + globalEvent.on('user_tips', ({ type, message: _message }) => messageApi[type](_message), { signal: abortController.signal });