From 6dd6f8ebf1220e247a0c5d62b02d9bd47440d850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Czhuzihan=E2=80=9D=E2=80=83?= <“772644120@qq.com”> Date: Wed, 2 Jul 2025 16:56:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=91=E7=A0=94=E4=BA=BA=E6=89=8D=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dashboard.vue | 2326 ++++++++++++++++++---------------- src/components/LabDetail.vue | 4 +- 2 files changed, 1241 insertions(+), 1089 deletions(-) diff --git a/src/components/Dashboard.vue b/src/components/Dashboard.vue index d74528f..4658aa7 100644 --- a/src/components/Dashboard.vue +++ b/src/components/Dashboard.vue @@ -104,15 +104,10 @@
- +
-

新闻与动态

-
-
- {{ item.title }} - {{ item.date }} -
-
+

教师服务与社会贡献项目分布

+
@@ -137,11 +132,14 @@

智能助手

- 北京理工大学 +

北京理工大学

+
+
+
@@ -162,344 +160,358 @@
- + - - - + + - - \ No newline at end of file +} + \ No newline at end of file diff --git a/src/components/LabDetail.vue b/src/components/LabDetail.vue index bf5d163..a5429de 100644 --- a/src/components/LabDetail.vue +++ b/src/components/LabDetail.vue @@ -315,8 +315,8 @@ const handleSearch = () => { filteredLabs.value = labs.value; } else { filteredLabs.value = labs.value.filter(lab => - lab.basicInformation.name1.includes(searchQuery.value) || - (lab.name0 && lab.name0.includes(searchQuery.value)) + lab.basicInformation.name1 && lab.basicInformation.name1.includes(searchQuery.value) || + (lab.basicInformation.name0 && lab.basicInformation.name0.includes(searchQuery.value)) ); }