web
8 天以前 81a0e26f1ba5fd0b95381ee902caa1579a8ec043
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import {getPumpWarning} from '@/api/screen/index.js'
import { ElNotification } from 'element-plus'
 
let timeout = 1000 * 3;
let timer = null;
 
// timer = setInterval(() => {
//     getPumpWarning({limit: 1, page:1}).then(res => {
//         if (res.data.list.length > 0) {
//             ElNotification.closeAll()
//             ElNotification({
//                 title: '错误',
//                 message: res.data.list[0].description,
//                 type: 'error',
//                 duration: 0
//             })
//         }
//     })
// }, timeout)