feat: 批量去除 vo

This commit is contained in:
xingyu4j
2025-06-15 15:33:18 +08:00
parent 96c4ee974a
commit 93a02573d7
64 changed files with 240 additions and 251 deletions

View File

@@ -19,7 +19,7 @@ const authStore = useAuthStore();
const activeName = ref('basicInfo');
/** 加载个人信息 */
const profile = ref<SystemUserProfileApi.UserProfileRespVO>();
const profile = ref<SystemUserProfileApi.UserProfileResp>();
async function loadProfile() {
profile.value = await getUserProfile();
}

View File

@@ -14,7 +14,7 @@ import { updateUserProfile } from '#/api/system/user/profile';
import { DICT_TYPE, getDictOptions } from '#/utils';
const props = defineProps<{
profile?: SystemUserProfileApi.UserProfileRespVO;
profile?: SystemUserProfileApi.UserProfileResp;
}>();
const emit = defineEmits<{
(e: 'success'): void;
@@ -77,7 +77,7 @@ async function handleSubmit(values: Recordable<any>) {
try {
formApi.setLoading(true);
// 提交表单
await updateUserProfile(values as SystemUserProfileApi.UpdateProfileReqVO);
await updateUserProfile(values as SystemUserProfileApi.UpdateProfileReq);
// 关闭并提示
emit('success');
message.success($t('ui.actionMessage.operationSuccess'));

View File

@@ -14,7 +14,7 @@ import { CropperAvatar } from '#/components/cropper';
import { useUpload } from '#/components/upload/use-upload';
const props = defineProps<{
profile?: SystemUserProfileApi.UserProfileRespVO;
profile?: SystemUserProfileApi.UserProfileResp;
}>();
const emit = defineEmits<{