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