From 91607261279ff4f0c52ae35a579c5c249a6205a1 Mon Sep 17 00:00:00 2001 From: Shang Yuanchun Date: Thu, 21 Mar 2024 18:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=83=A8=E5=88=86=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E7=B3=BB=E7=BB=9F=E4=B8=8A=20platformVersion=20?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E5=AF=BC=E8=87=B4=E7=9A=84=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#4259)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 解决部分操作系统上 platformVersion 为空导致的显示问题 例如archlinux,显示的是:arch- * fix: 修改表达式 (#4259) --- frontend/src/views/home/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index da5d326b6..3d6297a93 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -172,7 +172,7 @@ {{ $t('home.platformVersion') }} - {{ baseInfo.platform }}-{{ baseInfo.platformVersion }} + {{ baseInfo.platformVersion === "" ? baseInfo.platform : (baseInfo.platform + "-" + baseInfo.platformVersion) }}