added updated time

This commit is contained in:
Mamalizz
2025-03-15 01:45:58 +03:30
parent 84d993977f
commit 509afa2f04
@@ -17,7 +17,8 @@ const { data } = toRefs(props);
// computed
const timeAgo = usePersianTimeAgo(new Date(data.value.created_at));
const createdTimeAgo = usePersianTimeAgo(new Date(data.value.created_at));
const updatedTimeAgo = usePersianTimeAgo(new Date(data.value.updated_at));
</script>
<template>
@@ -33,8 +34,13 @@ const timeAgo = usePersianTimeAgo(new Date(data.value.created_at));
<td class="w-3/12 px-6 py-6">
{{ data.subject ? data.subject : "--" }}
</td>
<td class="w-3/12 px-6 py-6">
{{ data.created_at ? timeAgo : "--" }}
<td class="w-3/12 px-6 py-6 flex flex-col gap-3 text-sm">
<span class="w-full whitespace-pre">
ایجاد : {{ data.created_at ? createdTimeAgo : "--" }}
</span>
<span class="w-full whitespace-pre">
بروزرسانی : {{ data.updated_at ? updatedTimeAgo : "--" }}
</span>
</td>
<td class="w-2/12 px-6 py-6">
<div