解决部分操作系统上 platformVersion 为空导致的显示问题 (#4259)

* fix: 解决部分操作系统上 platformVersion 为空导致的显示问题

例如archlinux,显示的是:arch-

* fix: 修改表达式 (#4259)
This commit is contained in:
Shang Yuanchun 2024-03-21 18:54:13 +08:00 committed by GitHub
parent 3cd0c89c4c
commit 9160726127
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -172,7 +172,7 @@
{{ $t('home.platformVersion') }}
</span>
</template>
{{ baseInfo.platform }}-{{ baseInfo.platformVersion }}
{{ baseInfo.platformVersion === "" ? baseInfo.platform : (baseInfo.platform + "-" + baseInfo.platformVersion) }}
</el-descriptions-item>
<el-descriptions-item class-name="system-content">
<template #label>