Browse Source

revert(nc-gui): page keys

pull/3801/head
braks 2 years ago
parent
commit
2e51e73be9
  1. 2
      packages/nc-gui/app.vue
  2. 4
      packages/nc-gui/pages/[projectType]/[projectId]/index.vue

2
packages/nc-gui/app.vue

@ -9,7 +9,7 @@ const disableBaseLayout = computed(() => route.path.startsWith('/nc/view') || ro
<template> <template>
<a-config-provider> <a-config-provider>
<NuxtLayout :name="disableBaseLayout ? false : 'base'"> <NuxtLayout :name="disableBaseLayout ? false : 'base'">
<NuxtPage keepalive :page-key="$route.fullPath.split('?')[0]" /> <NuxtPage />
</NuxtLayout> </NuxtLayout>
</a-config-provider> </a-config-provider>
</template> </template>

4
packages/nc-gui/pages/[projectType]/[projectId]/index.vue

@ -486,10 +486,10 @@ onBeforeUnmount(reset)
</a-layout-sider> </a-layout-sider>
</template> </template>
<div> <div :key="$route.fullPath.split('?')[0]">
<LazyDashboardSettingsModal v-model="dialogOpen" :open-key="openDialogKey" /> <LazyDashboardSettingsModal v-model="dialogOpen" :open-key="openDialogKey" />
<NuxtPage :page-key="project.id" /> <NuxtPage />
<LazyGeneralPreviewAs float /> <LazyGeneralPreviewAs float />
</div> </div>

Loading…
Cancel
Save