Skip to content

Commit

Permalink
ui(person): 优化样式
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacker233 committed Dec 27, 2024
1 parent 228ae0a commit 40827b5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ const routes: Array<RouteRecordRaw> = [
keepAlive: true,
isShowComNav: true,
requireLogin: true,
showTitle: true
showTitle: false
},
component: MyResume
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</div>
</template>
<!-- 快捷操作列表 -->
<div class="global-module-padding--popver-content-box">
<div class="global-module-line-height-content-box">
<div class="padding-item">
<el-input-number
v-model="lineHeight"
Expand Down Expand Up @@ -439,4 +439,10 @@
}
}
}
.global-module-line-height-content-box {
.padding-item {
margin: 0;
padding: 0;
}
}
</style>
8 changes: 4 additions & 4 deletions src/views/person/components/RightContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
<div class="right-content-box">
<div class="menu-title">
<!-- 菜单标题 -->
<content-title-vue
v-if="route.meta.showTitle"
:title="(route.meta.title as string)"
></content-title-vue>
<content-title-vue v-if="showTitle" :title="(route.meta.title as string)"></content-title-vue>
</div>
<div class="router-box">
<router-view></router-view>
Expand All @@ -16,6 +13,9 @@
import ContentTitleVue from './ContentTitle.vue';
const route = useRoute();
const showTitle = computed(() => {
return route.meta.showTitle;
});
</script>
<style lang="scss" scoped>
.right-content-box {
Expand Down

0 comments on commit 40827b5

Please sign in to comment.