diff --git a/src-tauri/src/window/create_popup_window.rs b/src-tauri/src/window/create_popup_window.rs index 801acd4..58c0da4 100644 --- a/src-tauri/src/window/create_popup_window.rs +++ b/src-tauri/src/window/create_popup_window.rs @@ -49,7 +49,7 @@ pub async fn create_popup_window_impl(app: &AppHandle, target: &T /// 根据用户登录状态和课程选择情况动态计算弹出窗口高度 pub fn calculate_popup_size_sync() -> PopupSize { // 默认基础项目数 - let item_num = 3; + let item_num = 2; // 根据项目数计算高度,每个项目40像素,加上边距2像素 let popup_height = 40 * item_num + 2; let popup_width = 180; diff --git a/src/other_pages/popup-window/popup-window.vue b/src/other_pages/popup-window/popup-window.vue index 1315ec7..33dfc67 100644 --- a/src/other_pages/popup-window/popup-window.vue +++ b/src/other_pages/popup-window/popup-window.vue @@ -11,11 +11,6 @@ 打开主窗口 - -