fix 修复 缓存监控图表 支持跟随屏幕大小自适应调整
This commit is contained in:
		
							
								
								
									
										5
									
								
								src/views/monitor/cache/index.vue
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								src/views/monitor/cache/index.vue
									
									
									
									
										vendored
									
									
								
							| @ -157,7 +157,6 @@ const getList = async () => { | ||||
|       } | ||||
|     ] | ||||
|   }); | ||||
|  | ||||
|   const usedmemoryInstance = echarts.init(usedmemory.value, "macarons"); | ||||
|   usedmemoryInstance.setOption({ | ||||
|     tooltip: { | ||||
| @ -181,6 +180,10 @@ const getList = async () => { | ||||
|       } | ||||
|     ] | ||||
|   }) | ||||
|   window.addEventListener("resize",()=>{ | ||||
|     commandstatsIntance.resize() | ||||
|     usedmemoryInstance.resize() | ||||
|   }); | ||||
| } | ||||
|  | ||||
| onMounted(() => { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 疯狂的狮子Li
					疯狂的狮子Li