Browse Source

fix: bug[4522]停留计时显示错误,6分钟左右会增加一个小时,分钟从0开始

chenhao 2 years ago
parent
commit
0b1936cea3
2 changed files with 2 additions and 2 deletions
  1. 1 1
      server.config.ts
  2. 1 1
      src/utils/common.ts

+ 1 - 1
server.config.ts

@@ -4,7 +4,7 @@ const server: ServerOptions = {
   proxy: {
     '^/?(api|file)/': {
       // target: 'http://192.168.10.41:8200',
-      target: 'http://cet-dev.markingtool.cn',
+      target: 'http://cet-dev.markingtool.cn:8200',
     },
   },
 }

+ 1 - 1
src/utils/common.ts

@@ -183,7 +183,7 @@ export const timeFormat = (time: number) => {
     return ''
   }
   const DAY = 24 * 60 * 60 * 1000
-  const HOUR = 60 * 60 * 100
+  const HOUR = 60 * 60 * 1000
   const MINUTE = 60 * 1000
   const SECOND = 1000