first commit

This commit is contained in:
ysj7705 committed 2026-07-15 17:29:25 +09:00
commit a74fe7a388
42 files changed
+6058

No files matched your search

+28
View File
@@ -0,0 +1,28 @@
<script setup lang="ts">
import { computed } from 'vue';
import { useRoute } from 'vue-router';
import { bindSessionPageHideOnce } from '@/composables/useSessionLifecycle';
bindSessionPageHideOnce();
const route = useRoute();
/** Keep editor instances alive when visiting /licenses etc. */
const viewKey = computed(() => {
if (route.name === 'onlyoffice-editor') {
return `onlyoffice-${route.params.docId}`;
}
if (route.name === 'rhwp-editor') {
return 'rhwp-editor';
}
return String(route.fullPath);
});
</script>
<template>
<RouterView v-slot="{ Component }">
<KeepAlive :include="['OnlyOfficeEditorView', 'RhwpEditorView']" :max="6">
<component :is="Component" :key="viewKey" />
</KeepAlive>
</RouterView>
</template>