diff --git a/src/layout/component/main.vue b/src/layout/component/main.vue
index 8d21e298d04c7da2ef650338d541110350275054..2e5530d3f2fe1f9e81b044bb1587039f73448490 100644
--- a/src/layout/component/main.vue
+++ b/src/layout/component/main.vue
@@ -4,12 +4,10 @@
class="layout-scrollbar"
ref="layoutScrollbarRef"
:style="{
- minHeight: `calc(100vh - ${headerHeight})`,
- padding: currentRouteMeta.isLink && currentRouteMeta.isIframe ? 0 : '',
transition: 'padding 0.3s ease-in-out',
}"
>
-
+
@@ -30,7 +28,6 @@ export default defineComponent({
const store = useStore();
const state = reactive({
headerHeight: '',
- currentRouteMeta: {},
});
// 获取布局配置信息
const getThemeConfig = computed(() => {
@@ -42,14 +39,9 @@ export default defineComponent({
if (isTagsview) return (state.headerHeight = `84px`);
else return (state.headerHeight = `50px`);
};
- // 初始化获取当前路由 meta,用于设置 iframes padding
- const initGetMeta = () => {
- state.currentRouteMeta = route.meta;
- };
// 页面加载前
onBeforeMount(() => {
initHeaderHeight();
- initGetMeta();
});
// 监听 themeConfig 配置文件的变化,更新菜单 el-scrollbar 的高度
watch(store.state.themeConfig.themeConfig, (val) => {
@@ -62,9 +54,7 @@ export default defineComponent({
// 监听路由变化
watch(
() => route.path,
- () => {
- state.currentRouteMeta = route.meta;
- }
+ () => {}
);
return {
getThemeConfig,
diff --git a/src/layout/routerView/parent.vue b/src/layout/routerView/parent.vue
index 3ee8ed701923c6e0daf9fc71c996d58a91834bba..99ac703c309b0e5ea2d2f67ec711d24b9cd01b31 100644
--- a/src/layout/routerView/parent.vue
+++ b/src/layout/routerView/parent.vue
@@ -1,13 +1,18 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+