feat: display human-readable ttl

This commit is contained in:
ikaven1024 2023-10-15 15:18:43 +08:00
parent 1a49db2450
commit 95af057dd5
1 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,9 @@ const onDeleteKey = () => {
<template v-if="ttl < 0">
{{ $t('interface.forever') }}
</template>
<template v-else>{{ ttl }} {{ $t('common.second') }}</template>
<template v-else>
{{ Math.floor(ttl/3600) }}:{{ Math.floor((ttl%3600)/60) }}:{{ Math.floor(ttl%60) }}
</template>
</n-button>
</template>
TTL