You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							41 lines
						
					
					
						
							1.2 KiB
						
					
					
				
			
		
		
	
	
							41 lines
						
					
					
						
							1.2 KiB
						
					
					
				| @@master_page.html | |
| <div id="apibox"> | |
|     <div class="card"> | |
|         <div class="card-header"><h4>内部缓存</h4></div> | |
|         <div class="card-body"> | |
|             <div class="alert alert-success"> | |
|                 外部修改数据库需要清空 ,缓存内容主要包含:数据库信息、实体信息和接口信息。 | |
|             </div> | |
|             <div class="form-group"> | |
|                 <button type="button" @click="clearIntervalCache" class="btn btn-primary ajax-post" target-form="add-form">清空</button> | |
|             </div> | |
|         </div> | |
|     </div> | |
| </div> | |
| <script> | |
|  | |
|     var vueObj = new Vue({ | |
|         el: '#apibox', | |
|         data: { | |
|             data: null, | |
|         }, | |
|         mounted() { | |
|  | |
|         }, | |
|         methods: { | |
|  | |
|             clearIntervalCache: function () { | |
|                 axios.get("/PrivateReZeroRoute/100003/ClearAllInternalCache", jwHeader) | |
|                     .then(response => { | |
|                         this.error = null; | |
|                         tools.alert("清除成功"); | |
|  | |
|                     }) | |
|                     .catch(error => { | |
|                         this.error = error.message; | |
|                         this.data = null; | |
|                     }); | |
|             } | |
|         } | |
|     }); | |
| </script> |