fix: 修复时间错误

This commit is contained in:
chenjinsong
2022-01-06 16:56:41 +08:00
parent 35c3552605
commit f4ca2fa44c
2 changed files with 13 additions and 13 deletions

View File

@@ -227,7 +227,7 @@ export default {
this.entityList = []
setTimeout(() => {
const now = window.$dayJs.tz().valueOf()
const queryParams = { startTime: Math.floor(now.getTime() / 1000 - 3600), endTime: Math.floor(now.getTime() / 1000) }
const queryParams = { startTime: Math.floor(now / 1000 - 3600), endTime: Math.floor(now / 1000) }
switch (this.from) {
case ('ip'): {
n.forEach(data => {