mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update room.core.vue
This commit is contained in:
parent
b6e92cdef9
commit
ea732458ab
1 changed files with 7 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { computed, defineAsyncComponent, markRaw, nextTick, onMounted, onUnmounted, ref, shallowRef, useTemplateRef, watch } from 'vue';
|
||||
import { computed, defineAsyncComponent, markRaw, nextTick, onDeactivated, onMounted, onUnmounted, ref, shallowRef, useTemplateRef, watch } from 'vue';
|
||||
import * as BABYLON from '@babylonjs/core';
|
||||
import * as Misskey from 'misskey-js';
|
||||
import XObjectCustomizeForm from './room.object-customize-form.vue';
|
||||
|
|
@ -309,6 +309,12 @@ onMounted(async () => {
|
|||
});
|
||||
});
|
||||
|
||||
onDeactivated(() => {
|
||||
controller.destroy();
|
||||
|
||||
window.removeEventListener('resize', resize);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
controller.destroy();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue