移除多余代码

This commit is contained in:
hooray 2021-10-20 16:12:03 +08:00
parent 0d34eaa5d9
commit 2288cffae4
2 changed files with 1 additions and 26 deletions

View File

@ -1,6 +1,6 @@
<template>
<div class="layout">
<div id="app-main" :class="{'main-page-maximize': $store.state.settings.mainPageMaximizeStatus}">
<div id="app-main">
<Header />
<div class="wrapper">
<div class="sidebar-container" :class="{'show': $store.state.settings.mode === 'mobile' && !$store.state.settings.sidebarCollapse}">
@ -164,29 +164,6 @@ function switchMenu(index) {
height: 100%;
margin: 0 auto;
transition: all 0.2s;
//
&.main-page-maximize {
header,
.sidebar-container {
display: none;
}
.wrapper {
padding-top: 0;
.main-container {
margin-left: 0;
.topbar-container {
display: none;
}
.main {
padding: 0;
}
}
}
:deep([data-fixed-calc-width]) {
width: 100%;
transform: translateX(-50%);
}
}
}
.wrapper {
position: relative;

View File

@ -7,8 +7,6 @@ const state = () => ({
...settings,
// 侧边栏是否收起(用于记录 pc 模式下最后的状态)
sidebarCollapseLastStatus: settings.sidebarCollapse,
// 主页面是否最大化
mainPageMaximizeStatus: false,
// 显示模式支持mobile、pc
mode: 'pc',
// 页面标题