diff --git a/ruoyi-ui/src/api/business/warning/apiwarning.js b/ruoyi-ui/src/api/business/warning/apiwarning.js index ec53fdfe..d8ee9597 100644 --- a/ruoyi-ui/src/api/business/warning/apiwarning.js +++ b/ruoyi-ui/src/api/business/warning/apiwarning.js @@ -43,3 +43,12 @@ export function handleWarning(id) { method: 'put', }) } + + +// 清空预警记录信息 +export function clearAll() { + return request({ + url: '/warning/apiwarning/all', + method: 'delete', + }) +} diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 52fbb9b3..de5ec376 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -10,7 +10,7 @@