update Time

This commit is contained in:
梁灏 2018-07-10 09:06:27 +08:00
parent 929d491534
commit be7729728c
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@ export default {
scrollOffset: { scrollOffset: {
type: Number, type: Number,
default () { default () {
return this.anchorCom.scrollOffset return this.anchorCom.scrollOffset;
} }
} }
}, },

View file

@ -49,7 +49,7 @@ const getDate = (timeStamp, startType) => {
*/ */
export const getRelativeTime = timeStamp => { export const getRelativeTime = timeStamp => {
// 判断当前传入的时间戳是秒格式还是毫秒 // 判断当前传入的时间戳是秒格式还是毫秒
const IS_MILLISECOND = true; // const IS_MILLISECOND = true;
// 如果是毫秒格式则转为秒格式 // 如果是毫秒格式则转为秒格式
// if (IS_MILLISECOND) Math.floor(timeStamp /= 1000); // if (IS_MILLISECOND) Math.floor(timeStamp /= 1000);
// 传入的时间戳可以是数值或字符串类型,这里统一转为数值类型 // 传入的时间戳可以是数值或字符串类型,这里统一转为数值类型