|
|
@@ -5,7 +5,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { ref, onMounted, computed, inject } from "vue";
|
|
|
+import { ref, onMounted, computed, inject, onBeforeUnmount } from "vue";
|
|
|
import { mapState } from "vuex";
|
|
|
import exchangeUrl from "utils/exchangeUrl";
|
|
|
|
|
|
@@ -95,6 +95,10 @@ export default {
|
|
|
init();
|
|
|
}, 100);
|
|
|
});
|
|
|
+
|
|
|
+ onBeforeUnmount(() => {
|
|
|
+ radarChart.value.dispose();
|
|
|
+ });
|
|
|
return {
|
|
|
init,
|
|
|
exchangeUrl,
|