From da741e7593f98ef23ee981df912490ffa8a2759c Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 14 May 2026 12:14:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=99=9A=E6=8B=9F=E6=9C=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E7=BC=93=E5=AD=98+=E6=A8=A1=E7=B3=8A=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加keep-alive缓存VMList组件,从详情页返回不重新请求API - 只有点击刷新按钮才重新获取虚拟机列表 - 新增模糊搜索框,支持按名称/IP/MAC搜索 - 搜索时显示匹配数量统计 --- frontend/src/layout/MainLayout.vue | 6 ++++- frontend/src/views/VMList.vue | 43 ++++++++++++++++++++++++++---- 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/frontend/src/layout/MainLayout.vue b/frontend/src/layout/MainLayout.vue index 1d6bcb5..d20358d 100644 --- a/frontend/src/layout/MainLayout.vue +++ b/frontend/src/layout/MainLayout.vue @@ -57,7 +57,11 @@
- + + + + +
diff --git a/frontend/src/views/VMList.vue b/frontend/src/views/VMList.vue index 4781cd9..8ae6989 100644 --- a/frontend/src/views/VMList.vue +++ b/frontend/src/views/VMList.vue @@ -6,17 +6,24 @@ + 创建虚拟机 - + 刷新 - 共 {{ vmTotal }} 台虚拟机 + 共 {{ vmTotal }} 台虚拟机,匹配 {{ filteredVms.length }} 台 - +