| 
						
						
							
								
							
						
						
					 | 
					@ -304,10 +304,11 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        downloadBackup() { | 
					 | 
					 | 
					        downloadBackup() { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            let time = dayjs().format("YYYY_MM_DD-hh_mm_ss"); | 
					 | 
					 | 
					            let time = dayjs().format("YYYY_MM_DD-hh_mm_ss"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            let fileName = `Uptime_Kuma_Backup_${time}.json`; | 
					 | 
					 | 
					            let fileName = `Uptime_Kuma_Backup_${time}.json`; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            let monitorList = Object.values(this.$root.monitorList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            let exportData = { | 
					 | 
					 | 
					            let exportData = { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                version: this.$root.info.version, | 
					 | 
					 | 
					                version: this.$root.info.version, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                notificationList: this.$root.notificationList, | 
					 | 
					 | 
					                notificationList: this.$root.notificationList, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                monitorList: this.$root.monitorList, | 
					 | 
					 | 
					                monitorList: monitorList, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            exportData = JSON.stringify(exportData); | 
					 | 
					 | 
					            exportData = JSON.stringify(exportData); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            let downloadItem = document.createElement("a"); | 
					 | 
					 | 
					            let downloadItem = document.createElement("a"); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -326,9 +327,7 @@ export default { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            fileReader.readAsText(uploadItem.item(0)); | 
					 | 
					 | 
					            fileReader.readAsText(uploadItem.item(0)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            fileReader.onload = item => { | 
					 | 
					 | 
					            fileReader.onload = item => { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                let resultParse = JSON.parse(item.target.result); | 
					 | 
					 | 
					                this.$root.uploadBackup(item.target.result, (res) => { | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					                let result = Object.values(resultParse); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                this.$root.uploadBackup(result, (res) => { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                    if (res.ok) { | 
					 | 
					 | 
					                    if (res.ok) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        toast.success(res.msg); | 
					 | 
					 | 
					                        toast.success(res.msg); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    } else { | 
					 | 
					 | 
					                    } else { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |