【代码优化】review 个人中心的各种

This commit is contained in:
YunaiV
2025-04-21 19:43:46 +08:00
parent 5240fe2406
commit 73a21fd61f
3 changed files with 8 additions and 13 deletions

View File

@ -1,4 +1,5 @@
<template>
<!-- TODO @芋艿可优化对标 vben 版本 -->
<div class="flex">
<el-card class="user w-1/3" shadow="hover">
<template #header>
@ -9,11 +10,6 @@
<ProfileUser />
</el-card>
<el-card class="user ml-3 w-2/3" shadow="hover">
<template #header>
<div class="card-header">
<span>{{ t('profile.info.title') }}</span>
</div>
</template>
<div>
<el-tabs v-model="activeName" class="profile-tabs" style="height: 400px" tab-position="top">
<el-tab-pane :label="t('profile.info.basicInfo')" name="basicInfo">

View File

@ -16,7 +16,7 @@ import { uploadAvatar } from '@/api/system/user/profile'
import { CropperAvatar } from '@/components/Cropper'
import { useUserStore } from '@/store/modules/user'
// TODO @芋艿:合并到 ProfileUser 组件中,更简洁一点
defineOptions({ name: 'UserAvatar' })
defineProps({
@ -25,7 +25,6 @@ defineProps({
const userStore = useUserStore()
const cropperRef = ref()
const handelUpload = async ({ data }) => {
const res = await uploadAvatar({ avatarFile: data })