ith5 5 hónapja
szülő
commit
7918d54985
2 módosított fájl, 11 hozzáadás és 17 törlés
  1. 10 16
      src/layout/components/ma-workerArea.vue
  2. 1 1
      src/store/modules/tag.js

+ 10 - 16
src/layout/components/ma-workerArea.vue

@@ -1,18 +1,12 @@
 <template>
   <a-layout-content class="work-area customer-scrollbar relative">
-    <div
-      class="h-full"
-      :class="{ 'p-3': $route.path.indexOf('maIframe') === -1 }"
-    >
+    <div class="h-full" :class="{ 'p-3': $route.path.indexOf('maIframe') === -1 }">
       <a-watermark :content="appStore.waterMark ? appStore.waterContent : ''">
         <router-view v-slot="{ Component }">
           <transition :name="appStore.animation" mode="out-in">
-            <keep-alive :include="keepStore.keepAlives">
-              <component
-                :is="Component"
-                :key="$route.fullPath"
-                v-if="keepStore.show"
-              />
+            <!-- <keep-alive :include="keepStore.keepAlives"> -->
+            <keep-alive>
+              <component :is="Component" :key="$route.fullPath" v-if="keepStore.show" />
             </keep-alive>
           </transition>
         </router-view>
@@ -23,10 +17,10 @@
 </template>
 
 <script setup>
-import { useAppStore, useKeepAliveStore } from "@/store";
-import IframeView from "./components/iframe-view.vue";
-const appStore = useAppStore();
-const keepStore = useKeepAliveStore();
-console.log("keepAlives");
-console.log("keepAlives", keepStore.keepAlives);
+import { useAppStore, useKeepAliveStore } from '@/store'
+import IframeView from './components/iframe-view.vue'
+const appStore = useAppStore()
+const keepStore = useKeepAliveStore()
+console.log('keepAlives')
+console.log('keepAlives', keepStore.keepAlives)
 </script>

+ 1 - 1
src/store/modules/tag.js

@@ -2,7 +2,7 @@ import { defineStore } from 'pinia'
 import tool from '@/utils/tool'
 
 const defaultTag = [
-  { name: 'dashboard', title: '仪表盘1', path: '/dashboard', affix: true }
+  { name: 'dashboard', title: '仪表盘', path: '/dashboard', affix: true }
 ]
 const useTagStore = defineStore('tag', {
   state: () => ({