mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-14 17:26:18 -04:00
Added clear all db statistics function
This commit is contained in:
parent
1341d220ed
commit
7b92166d18
6 changed files with 48 additions and 8 deletions
|
@ -360,7 +360,6 @@ export default {
|
|||
clearEvents() {
|
||||
this.$root.clearEvents(this.monitor.id, (res) => {
|
||||
if (res.ok) {
|
||||
toast.success(res.msg);
|
||||
this.$router.go();
|
||||
} else {
|
||||
toast.error(res.msg);
|
||||
|
@ -371,7 +370,6 @@ export default {
|
|||
clearHeartbeats() {
|
||||
this.$root.clearHeartbeats(this.monitor.id, (res) => {
|
||||
if (res.ok) {
|
||||
toast.success(res.msg);
|
||||
this.$router.go();
|
||||
} else {
|
||||
toast.error(res.msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue