|
@@ -8,7 +8,7 @@
|
|
|
<headTemp style="width:100%;margin:10px 0"></headTemp>
|
|
|
<historyTabs/>
|
|
|
<div :style="{ padding: '0px', minHeight: 'calc(100vh - 146px)'}">
|
|
|
- <router-view v-slot="{ Component }">
|
|
|
+ <router-view ref="keepAlive" v-slot="{ Component }">
|
|
|
<keep-alive v-if="router.currentRoute.value.meta.keepAlive">
|
|
|
<component :is="Component" :key="router.currentRoute.value.fullPath"/>
|
|
|
</keep-alive>
|
|
@@ -29,23 +29,37 @@
|
|
|
<p style="margin-top:40px;color:rgb(100, 108, 255)">站点切换中,正在加载站点配置...</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <a-drawer
|
|
|
+ v-model:open="open"
|
|
|
+ placement="right"
|
|
|
+ :mask="true"
|
|
|
+ :closable="false"
|
|
|
+ :title="null"
|
|
|
+ :bodyStyle="{padding:'0px',background:'#f1f2f3'}"
|
|
|
+ width="80%">
|
|
|
+ <component :is="currentComponent"></component>
|
|
|
+ </a-drawer>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
+import {ref} from 'vue'
|
|
|
import { theme } from 'ant-design-vue';
|
|
|
const { useToken } = theme;
|
|
|
const { token } = useToken();
|
|
|
import noticeModal from '@/components/noticeModal/index.vue'
|
|
|
+
|
|
|
import headTemp from './modules/header.vue';
|
|
|
import asideTemp from './modules/aside.vue'
|
|
|
import historyTabs from './modules/historyTabs.vue'
|
|
|
import webSocket from '../webSocket/index.vue'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import { useAuthStore } from '@/stores/modules/auth'
|
|
|
+import { useBaseStore } from '@/stores/modules/base'
|
|
|
import { useRouter } from "vue-router";
|
|
|
const router = useRouter()
|
|
|
-
|
|
|
+const base = useBaseStore()
|
|
|
const store = useAuthStore()
|
|
|
let { isRefresh } = storeToRefs(store)
|
|
|
+let { open,currentComponent } = storeToRefs(base)
|
|
|
</script>
|
|
|
<style>
|
|
|
.layout{
|