mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 05:27:39 +08:00
移除多余代码
This commit is contained in:
parent
0d34eaa5d9
commit
2288cffae4
@ -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;
|
||||
|
@ -7,8 +7,6 @@ const state = () => ({
|
||||
...settings,
|
||||
// 侧边栏是否收起(用于记录 pc 模式下最后的状态)
|
||||
sidebarCollapseLastStatus: settings.sidebarCollapse,
|
||||
// 主页面是否最大化
|
||||
mainPageMaximizeStatus: false,
|
||||
// 显示模式,支持:mobile、pc
|
||||
mode: 'pc',
|
||||
// 页面标题
|
||||
|
Loading…
Reference in New Issue
Block a user