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)