mirror of
				https://github.com/louislam/uptime-kuma.git
				synced 2025-11-04 13:46:13 +08:00 
			
		
		
		
	Added clear all db statistics function
This commit is contained in:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user