From c4938f6f4e839890b032c75c7a57333a6a9157a9 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 06 十一月 2025 17:06:10 +0800
Subject: [PATCH] 添加新闻功能
---
web/src/views/check-detail.vue | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/src/views/check-detail.vue b/web/src/views/check-detail.vue
index 57d9776..cfa0d6e 100644
--- a/web/src/views/check-detail.vue
+++ b/web/src/views/check-detail.vue
@@ -417,7 +417,7 @@
}
// 鑾峰彇瀛﹀巻鏂囨湰
-const getEducationText = (education: number) => {
+const getEducationText = (education: number | string) => {
const educationMap: Record<number, string> = {
1: '楂樹腑',
2: '澶т笓',
@@ -425,7 +425,8 @@
4: '纭曞+',
5: '鍗氬+'
}
- return educationMap[education] || '-'
+ const numEducation = typeof education === 'string' ? parseInt(education) : education
+ return educationMap[numEducation] || '-'
}
// 鑾峰彇鐘舵�佹枃鏈�
--
Gitblit v1.8.0