mirror of
				https://github.com/soybeanjs/soybean-admin.git
				synced 2025-11-04 15:53:43 +08:00 
			
		
		
		
	@@ -98,6 +98,7 @@ export function useEcharts(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  function update(updateOptions: ECOption) {
 | 
					  function update(updateOptions: ECOption) {
 | 
				
			||||||
    if (isRendered()) {
 | 
					    if (isRendered()) {
 | 
				
			||||||
 | 
								chart?.clear();
 | 
				
			||||||
      chart!.setOption({ ...updateOptions, backgroundColor: 'transparent' });
 | 
					      chart!.setOption({ ...updateOptions, backgroundColor: 'transparent' });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
@@ -145,7 +146,7 @@ export function useEcharts(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  const stopOptionWatch = watch(options, newValue => {
 | 
					  const stopOptionWatch = watch(options, newValue => {
 | 
				
			||||||
    update(newValue);
 | 
					    update(newValue);
 | 
				
			||||||
  });
 | 
					  }, { deep: true });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  const stopDarkModeWatch = watch(
 | 
					  const stopDarkModeWatch = watch(
 | 
				
			||||||
    () => theme.darkMode,
 | 
					    () => theme.darkMode,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user