refactor: 前端样式调整

This commit is contained in:
meilin.huang
2023-12-11 17:08:52 +08:00
parent d00bd2ed72
commit 75bd4ca3df
7 changed files with 81 additions and 88 deletions

View File

@@ -57,7 +57,7 @@ const initCurrentRouteMeta = (meta: object) => {
// 设置 main 的高度
const initHeaderHeight = () => {
let { isTagsview } = themeConfig.value;
if (isTagsview) return (state.headerHeight = `84px`);
if (isTagsview) return (state.headerHeight = `77px`);
else return (state.headerHeight = `50px`);
};
// 页面加载前
@@ -67,7 +67,7 @@ onBeforeMount(() => {
});
// 监听 themeConfig 配置文件的变化,更新菜单 el-scrollbar 的高度
watch(themeConfig.value, (val) => {
state.headerHeight = val.isTagsview ? '84px' : '50px';
state.headerHeight = val.isTagsview ? '77px' : '50px';
if (val.isFixedHeaderChange !== val.isFixedHeader) {
if (!proxy.$refs.layoutScrollbarRef) return false;
proxy.$refs.layoutScrollbarRef.update();