update: 更新文件 useTime.js

上级 a75f6598
......@@ -13,6 +13,7 @@ export default function (time) {
else if (timeAgo.value.indexOf('hour ago') > 0) timeStr = timeAgo.value.split(' ')[0] + ' 小时前'
else if (timeAgo.value.indexOf('hours ago') > 0) timeStr = timeAgo.value.split(' ')[0] + ' 小时前'
else if (timeAgo.value.indexOf('days ago') > 0) timeStr = timeAgo.value.split(' ')[0] + ' 天前'
else if (timeAgo.value.indexOf('weeks ago') > 0) timeStr = timeAgo.value.split(' ')[0] + ' 周前'
else if (timeAgo.value.indexOf('months ago') > 0) timeStr = timeAgo.value.split(' ')[0] + ' 个月前'
else if (timeAgo.value.indexOf('years ago') > 0) timeStr = timeAgo.value.split(' ')[0] + ' 年前'
return timeStr
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册