mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-02 21:16:07 +02:00
remove instance activity from keep-alive
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, nextTick, onDeactivated, onMounted, ref, watch } from 'vue';
|
||||
import { computed, nextTick, onBeforeUnmount, onDeactivated, onMounted, ref, watch } from 'vue';
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
||||
import dayjs from 'dayjs';
|
||||
@@ -83,9 +83,18 @@
|
||||
initEcharts();
|
||||
});
|
||||
|
||||
onDeactivated(() => {
|
||||
// prevent switch tab play resize animation
|
||||
resizeObserver.value.disconnect();
|
||||
// onDeactivated(() => {
|
||||
// // prevent switch tab play resize animation
|
||||
// if (resizeObserver.value) {
|
||||
// resizeObserver.value.disconnect();
|
||||
// }
|
||||
// });
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
if (resizeObserver.value) {
|
||||
resizeObserver.value.disconnect();
|
||||
resizeObserver.value = null;
|
||||
}
|
||||
});
|
||||
|
||||
function initResizeObserver() {
|
||||
|
||||
Reference in New Issue
Block a user