fix: the cache problem of page with dynamic route; 🐛

修复:动态路由下页面缓存问题;
master
iczer 5 years ago
parent 48bb1c4bb1
commit 805cd799f8
  1. 2
      src/layouts/BlankView.vue
  2. 2
      src/layouts/PageView.vue
  3. 2
      src/layouts/tabs/TabsView.vue

@ -1,7 +1,7 @@
<template>
<page-toggle-transition :disabled="animate.disabled" :animate="animate.name" :direction="animate.direction">
<keep-alive :exclude="dustbins" v-if="multiPage">
<router-view />
<router-view :key="$route.fullPath" />
</keep-alive>
<router-view v-else />
</page-toggle-transition>

@ -5,7 +5,7 @@
</div>
<page-toggle-transition :disabled="animate.disabled" :animate="animate.name" :direction="animate.direction">
<keep-alive :exclude="dustbins" v-if="multiPage">
<router-view ref="page" />
<router-view :key="$route.fullPath" ref="page" />
</keep-alive>
<router-view ref="page" v-else />
</page-toggle-transition>

@ -18,7 +18,7 @@
<div class="tabs-view-content" :style="`margin-top: ${multiPage ? -24 : 0}px`">
<page-toggle-transition :disabled="animate.disabled" :animate="animate.name" :direction="animate.direction">
<keep-alive :exclude="dustbins" v-if="multiPage">
<router-view />
<router-view :key="$route.fullPath" />
</keep-alive>
<router-view v-else />
</page-toggle-transition>

Loading…
Cancel
Save