修改日志

boardTest
suixy 2 weeks ago
parent e0b3f3e552
commit 06ecbcc11e

@ -9,6 +9,7 @@
<script> <script>
import ThemePicker from "@/components/ThemePicker"; import ThemePicker from "@/components/ThemePicker";
import AlmModal from "@/components/AlmModal"; import AlmModal from "@/components/AlmModal";
import {parseTime} from "@/utils/ruoyi";
let timeInterval = null; let timeInterval = null;
export default { export default {
@ -379,7 +380,7 @@ export default {
Object.keys(this.isOnline).forEach(key => { Object.keys(this.isOnline).forEach(key => {
// console.log(key, new Date().getTime() - this.isOnline[key]) // console.log(key, new Date().getTime() - this.isOnline[key])
if (new Date().getTime() - this.isOnline[key] > (1000 * 60 * 60)) { if (new Date().getTime() - this.isOnline[key] > (1000 * 60 * 60)) {
console.log('error', key) console.log('error', key, parseTime(new Date().getTime()))
this.saveLo(key) this.saveLo(key)
this.$confirm(`设备${key}已离线`, '设备离线', { this.$confirm(`设备${key}已离线`, '设备离线', {
cancelButtonText: '关闭', cancelButtonText: '关闭',

Loading…
Cancel
Save