|
@@ -1,18 +1,12 @@
|
|
|
<template>
|
|
<template>
|
|
|
<a-layout-content class="work-area customer-scrollbar relative">
|
|
<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 : ''">
|
|
<a-watermark :content="appStore.waterMark ? appStore.waterContent : ''">
|
|
|
<router-view v-slot="{ Component }">
|
|
<router-view v-slot="{ Component }">
|
|
|
<transition :name="appStore.animation" mode="out-in">
|
|
<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>
|
|
</keep-alive>
|
|
|
</transition>
|
|
</transition>
|
|
|
</router-view>
|
|
</router-view>
|
|
@@ -23,10 +17,10 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<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>
|
|
</script>
|