mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-23 06:30:48 +08:00
Merge pull request #442 from nagisa77/codex/add-keep-alive-feature-for-navigation
feat: enable page keepalive
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<MenuComponent :visible="!hideMenu && menuVisible" @item-click="menuVisible = false" />
|
||||
</div>
|
||||
<div class="content" :class="{ 'menu-open': menuVisible && !hideMenu }">
|
||||
<NuxtPage />
|
||||
<NuxtPage keepalive />
|
||||
</div>
|
||||
</div>
|
||||
<GlobalPopups />
|
||||
|
||||
@@ -106,6 +106,12 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
definePageMeta({
|
||||
keepalive: true
|
||||
})
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import { ref, watch } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
@@ -104,6 +104,12 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
definePageMeta({
|
||||
keepalive: true
|
||||
})
|
||||
</script>
|
||||
|
||||
<script>
|
||||
import { ref, computed, onMounted, onBeforeUnmount, nextTick, watch } from 'vue'
|
||||
import VueEasyLightbox from 'vue-easy-lightbox'
|
||||
|
||||
Reference in New Issue
Block a user