Commit be7729728c080dfa0aba2a5ced25a9b5396cfb06
1 parent
929d4915
update Time
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
src/components/anchor/anchor-link.vue
src/components/time/time.js
... | ... | @@ -49,7 +49,7 @@ const getDate = (timeStamp, startType) => { |
49 | 49 | */ |
50 | 50 | export const getRelativeTime = timeStamp => { |
51 | 51 | // 判断当前传入的时间戳是秒格式还是毫秒 |
52 | - const IS_MILLISECOND = true; | |
52 | + // const IS_MILLISECOND = true; | |
53 | 53 | // 如果是毫秒格式则转为秒格式 |
54 | 54 | // if (IS_MILLISECOND) Math.floor(timeStamp /= 1000); |
55 | 55 | // 传入的时间戳可以是数值或字符串类型,这里统一转为数值类型 | ... | ... |