From adf10a882ee565d6a5c37ba07a9e8ec2289ccf34 Mon Sep 17 00:00:00 2001
From: jazz <49930677+jxmanxk@users.noreply.github.com>
Date: 星期四, 03 三月 2022 17:55:17 +0800
Subject: [PATCH] Merge branch 'master' of http://1.15.4.62/r/~chenshaoxiong/sms_center_backstage

---
 src/layout/components/AppMain.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue
index f6a3286..8165963 100644
--- a/src/layout/components/AppMain.vue
+++ b/src/layout/components/AppMain.vue
@@ -1,7 +1,12 @@
 <template>
   <section class="app-main">
     <transition name="fade-transform" mode="out-in">
-      <router-view :key="key" />
+      <div>
+        <keep-alive>
+          <router-view v-if="$route.meta.keepAlive" :key="key" />
+        </keep-alive>
+        <router-view v-if="!$route.meta.keepAlive" :key="key" />
+      </div>
     </transition>
   </section>
 </template>

--
Gitblit v1.8.0