refactor: 优化个人中心账户管理功能

This commit is contained in:
wangqiao
2025-09-11 21:21:56 +08:00
parent b0b50ed960
commit fec929bf06
7 changed files with 119 additions and 10 deletions

View File

@ -0,0 +1,37 @@
<template>
<KlTabBar v-model="type" :data="tabBar" />
<div v-if="type === '修改密码'">
<AccountSecurity />
</div>
<div v-else-if="type === '账号绑定'">
<AccountBind />
</div>
<div v-else-if="type === '账号注销'">
<AccountLogout />
</div>
</template>
<script lang="ts" setup>
import KlTabBar from '~/components/kl-tab-bar/v2/index.vue'
import AccountSecurity from './account-security.vue'
import AccountBind from './account-bind.vue'
import AccountLogout from './account-logout.vue'
const tabBar = ref([
{
label: '修改密码',
value: '修改密码',
},
{
label: '账号绑定',
value: '账号绑定',
},
{
label: '账号注销',
value: '账号注销',
},
])
const type = ref('修改密码')
</script>
<style lang="scss" scoped></style>