East hace 3 años
padre
commit
13d7d38463
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6 0
      src/views/BioSafety/chart/ChartElectro.vue

+ 6 - 0
src/views/BioSafety/chart/ChartElectro.vue

@@ -32,6 +32,12 @@ export default {
         this.init();
       }
     },
+    total(newVal) {
+      if (newVal) {
+        this.myChart.clear();
+        this.init();
+      }
+    },
   },
   methods: {
     init() {