forked from FoundKeyGang/FoundKey
fix missed parentheses
This commit is contained in:
parent
4e41fa8767
commit
a07b464690
1 changed files with 2 additions and 2 deletions
|
@ -20,13 +20,13 @@ const props = withDefaults(defineProps<{
|
|||
});
|
||||
|
||||
const _time = typeof props.time === 'string' ? new Date(props.time) : props.time;
|
||||
const absolute = (): string => {
|
||||
const absolute = ((): string => {
|
||||
switch (props.format) {
|
||||
case 'date': return _time.toLocaleDateString();
|
||||
case 'time': return _time.toLocaleTimeString();
|
||||
default: return _time.toLocaleString();
|
||||
}
|
||||
}();
|
||||
})();
|
||||
|
||||
let now = $ref(new Date());
|
||||
const relative = $computed(() => {
|
||||
|
|
Loading…
Reference in a new issue