perf: 移动端优化

This commit is contained in:
阿胖 2023-02-21 06:38:54 +00:00
parent 921ff4e5bf
commit efd25bc787
2 changed files with 18 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<div class="setting-head">
<div class="setting-titbox">
<div class="setting-title">
<h1>{{$L('设置')}}</h1>
<h1>{{$L(settingTitleName)}}</h1>
<div v-if="!show768Menu" class="setting-more" @click="toggleRoute('index')">
<Icon type="md-close" />
</div>
@ -121,7 +121,14 @@ export default {
}
})
return name || '设置';
}
},
settingTitleName() {
if (this.windowSmall) {
return this.titleNameRoute
}
return '设置'
},
},
watch: {

View File

@ -14,9 +14,13 @@
align-items: center;
> h1 {
flex: 1;
width: 0;
color: $primary-title-color;
font-size: 28px;
font-weight: 600;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.setting-more {
display: none;
@ -399,6 +403,11 @@
}
}
}
.setting-content {
.setting-content-title {
display: none;
}
}
}
.setting-item {
.setting-footer {