From b367f29698fa0631173b939355803c22a9dba651 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期一, 08 八月 2022 12:14:48 +0800
Subject: [PATCH] 添加修改页面

---
 src/App.vue |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index e2f3598..3b67207 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,5 +1,18 @@
 <template>
+    <!--    <transition name="fade" mode="out-in">-->
+    <!--        <keep-alive :exclude="excludeList">-->
+    <!--            <router-view v-if="!$route.meta.iskeepAlive" :key="$route.id"></router-view>-->
+    <!--        </keep-alive>-->
+    <!--    </transition>-->
+    <!--    <router-view v-if="!$route.meta.iskeepAlive" v-slot="{ Component }">-->
+    <!--        <transition name="fade" mode="in-out">-->
+    <!--            <keep-alive :exclude="excludeList" :include="includeList">-->
+    <!--                <component :is="Component" :key="$route.id"></component>-->
+    <!--            </keep-alive>-->
+    <!--        </transition>-->
+    <!--    </router-view>-->
     <el-config-provider :size="getGlobalComponentSize" :locale="i18nLocale">
+        <router-view v-show="themeConfig.lockScreenTime > 1" />
         <router-view v-show="themeConfig.lockScreenTime > 1" />
         <LockScreen v-if="themeConfig.isLockScreen" />
         <Setings ref="setingsRef" v-show="themeConfig.lockScreenTime > 1" />
@@ -32,7 +45,9 @@
         const storesThemeConfig = useThemeConfig();
         const { themeConfig } = storeToRefs(storesThemeConfig);
         const state = reactive({
-            i18nLocale: null
+            i18nLocale: null,
+            excludeList: ['a-e'],
+            includeList: []
         });
 
         // 获取全局组件大小
@@ -62,10 +77,10 @@
                     (state.i18nLocale as string | null) = locale;
                 });
                 // 获取缓存中的布局配置
-                if (Local.get('themeConfig')) {
-                    storesThemeConfig.setThemeConfig(Local.get('themeConfig'));
-                    document.documentElement.style.cssText = Local.get('themeConfigStyle');
-                }
+                // if (Local.get('themeConfig')) {
+                //     storesThemeConfig.setThemeConfig(Local.get('themeConfig'));
+                //     document.documentElement.style.cssText = Local.get('themeConfigStyle');
+                // }
                 // 获取缓存中的全屏配置
                 if (Session.get('isTagsViewCurrenFull')) {
                     stores.setCurrenFullscreen(Session.get('isTagsViewCurrenFull'));

--
Gitblit v1.9.2