修改vite2.9.9的情况下右侧白页问题

This commit is contained in:
piexlmax
2022-05-19 17:37:03 +08:00
parent bfe3a861f5
commit fc0958e511
2 changed files with 13 additions and 6 deletions

View File

@@ -79,11 +79,13 @@
</div>
</transition>
<router-view v-if="reloadFlag" v-slot="{ Component }" v-loading="loadingFlag" element-loading-text="正在加载中" class="admin-box">
<transition mode="out-in" name="el-fade-in-linear">
<keep-alive :include="routerStore.keepAliveRouters">
<component :is="Component" />
</keep-alive>
</transition>
<div>
<transition mode="out-in" name="el-fade-in-linear">
<keep-alive :include="routerStore.keepAliveRouters">
<component :is="Component" />
</keep-alive>
</transition>
</div>
</router-view>
<BottomInfo />
<setting />
@@ -120,6 +122,11 @@ const routerStore = useRouterStore()
const isCollapse = ref(false)
const isSider = ref(true)
const isMobile = ref(false)
const cc = (e) => {
console.log(e)
}
const initPage = () => {
const screenWidth = document.body.clientWidth
if (screenWidth < 1000) {