mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-23 23:08:06 +08:00
feat: display human-readable ttl
This commit is contained in:
parent
1a49db2450
commit
95af057dd5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user