fix:修复其他子页面顶部显示遮盖问题
This commit is contained in:
parent
3019ff983d
commit
c1d801cf93
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<Nav @gotoIfreamPage="gotoIfreamPage" @gotoPage="gotoPage" />
|
||||
<div ref="contentWrap" class="content-wrap" :style="{ 'height': documentClientHeight + 'px' }">
|
||||
<div ref="contentWrap" class="content-wrap" :style="isHomePage ? { 'height': documentClientHeight + 'px','margin-top':'0px' } : { 'height': documentClientHeight-64 + 'px','margin-top':'64px' }">
|
||||
<iframe v-if="iframeUrl" :src="iframeUrl" width="100%" height="100%" frameborder="0" scrolling="yes">
|
||||
</iframe>
|
||||
<keep-alive v-else>
|
||||
@ -31,6 +31,9 @@ export default {
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
isHomePage() {
|
||||
return this.$route.path === '/home' || this.$route.path === '/';
|
||||
},
|
||||
// documentClientHeight: {
|
||||
// get() {
|
||||
// return this.$store.state.common.documentClientHeight;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user