fix bug
This commit is contained in:
@@ -35,7 +35,8 @@
|
||||
</div>
|
||||
<p class="description" v-if="software.description">{{ software.description }}</p>
|
||||
<div class="version-info">
|
||||
<template v-if="software.status === 'installed'">
|
||||
<!-- 如果状态是已安装,或者是在更新/全部列表中已经有版本号的软件 -->
|
||||
<template v-if="software.status === 'installed' || (software.status === 'idle' && actionLabel === '更新') || (software.status === 'idle' && !actionLabel && software.version)">
|
||||
<span class="version-tag">当前: {{ software.version || '--' }}</span>
|
||||
</template>
|
||||
<template v-else>
|
||||
@@ -44,7 +45,7 @@
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<span class="version-tag available" v-if="software.status !== 'installed' && software.available_version">
|
||||
<span class="version-tag available" v-if="software.available_version">
|
||||
最新: {{ software.available_version }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user