Commit be7729728c080dfa0aba2a5ced25a9b5396cfb06

Authored by 梁灏
1 parent 929d4915

update Time

src/components/anchor/anchor-link.vue
... ... @@ -14,7 +14,7 @@ export default {
14 14 scrollOffset: {
15 15 type: Number,
16 16 default () {
17   - return this.anchorCom.scrollOffset
  17 + return this.anchorCom.scrollOffset;
18 18 }
19 19 }
20 20 },
... ...
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 // 传入的时间戳可以是数值或字符串类型,这里统一转为数值类型
... ...