فهرست منبع

移除页面缓存

kumu 7 ماه پیش
والد
کامیت
78a9d01ec7
1فایلهای تغییر یافته به همراه1 افزوده شده و 3 حذف شده
  1. 1 3
      src/App.vue

+ 1 - 3
src/App.vue

@@ -5,9 +5,7 @@ const theme = ref<'light' | 'dark'>('dark');
 <template>
   <van-config-provider :theme>
     <router-view class="page-container" v-slot="{ Component }">
-      <keep-alive>
-        <component :is="Component" />
-      </keep-alive>
+      <component :is="Component" />
     </router-view>
   </van-config-provider>
 </template>