fix: 我的页外层包裹改template去除双重间距

This commit is contained in:
liyy 2026-09-04 17:35:01 +08:00
parent c03a7709c8
commit 79bc0860cb

View File

@ -86,7 +86,7 @@ function editProfile() {
/> />
<!-- ============ 移动端我的 ============ --> <!-- ============ 移动端我的 ============ -->
<div v-else-if="isMobile && d" class="profile-mobile"> <template v-else-if="isMobile && d">
<header class="profile-mobile__head"> <header class="profile-mobile__head">
<h1>我的</h1> <h1>我的</h1>
</header> </header>
@ -165,10 +165,10 @@ function editProfile() {
<p class="profile-tip__text">{{ weakTip }}</p> <p class="profile-tip__text">{{ weakTip }}</p>
</div> </div>
</AppCard> </AppCard>
</div> </template>
<!-- ============ 桌面端我的 ============ --> <!-- ============ 桌面端我的 ============ -->
<div v-else-if="d" class="profile-desktop"> <template v-else-if="d">
<AppPageHeader title="我的" subtitle="管理个人资料与备考偏好" sticky-mobile> <AppPageHeader title="我的" subtitle="管理个人资料与备考偏好" sticky-mobile>
<AppButton variant="secondary" @click="editProfile"> <AppButton variant="secondary" @click="editProfile">
<AppIcon name="user" :size="16" />编辑资料 <AppIcon name="user" :size="16" />编辑资料
@ -243,7 +243,7 @@ function editProfile() {
</div> </div>
<RouterLink class="tip-banner__action" to="/plan/review">去加强</RouterLink> <RouterLink class="tip-banner__action" to="/plan/review">去加强</RouterLink>
</AppStack> </AppStack>
</div> </template>
</AppStack> </AppStack>
</template> </template>
@ -433,11 +433,6 @@ function editProfile() {
} }
/* 移动端 */ /* 移动端 */
.profile-mobile {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.profile-mobile__head h1 { .profile-mobile__head h1 {
margin: 0; margin: 0;
font-size: 22px; font-size: 22px;