From d8f5a1fcb8632a9fb51cac9d72fb3bacaa41cbc2 Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期四, 08 四月 2021 15:57:49 +0800
Subject: [PATCH] 1.添加mode提示、2.mock模式侧边栏不限制权限全显示

---
 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