Преглед изворни кода

!97 解决页面偶尔出现的白屏问题
Merge pull request !97 from 吴均/dev

疯狂的狮子Li пре 1 година
родитељ
комит
70120a8f2f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/layout/components/AppMain.vue

+ 1 - 1
src/layout/components/AppMain.vue

@@ -1,6 +1,6 @@
 <template>
   <section class="app-main">
-    <router-view v-slot="{ Component, route }">
+    <router-view v-slot="{ Component, route }" :key="$route.fullPath">
       <transition :enter-active-class="animante" mode="out-in">
         <keep-alive :include="tagsViewStore.cachedViews">
           <component :is="Component" v-if="!route.meta.link" :key="route.path" />