diff --git a/src/components/anchor/anchor-link.vue b/src/components/anchor/anchor-link.vue index 3465603e..0e6536d3 100644 --- a/src/components/anchor/anchor-link.vue +++ b/src/components/anchor/anchor-link.vue @@ -14,7 +14,7 @@ export default { scrollOffset: { type: Number, default () { - return this.anchorCom.scrollOffset + return this.anchorCom.scrollOffset; } } }, diff --git a/src/components/time/time.js b/src/components/time/time.js index 867e8999..1bf3a077 100644 --- a/src/components/time/time.js +++ b/src/components/time/time.js @@ -49,7 +49,7 @@ const getDate = (timeStamp, startType) => { */ export const getRelativeTime = timeStamp => { // 判断当前传入的时间戳是秒格式还是毫秒 - const IS_MILLISECOND = true; + // const IS_MILLISECOND = true; // 如果是毫秒格式则转为秒格式 // if (IS_MILLISECOND) Math.floor(timeStamp /= 1000); // 传入的时间戳可以是数值或字符串类型,这里统一转为数值类型