feat: 项目结构重构优化
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<div class="profile-container">
|
||||
<el-row :gutter="20">
|
||||
<!-- 左侧个人信息卡片 -->
|
||||
@@ -224,14 +224,16 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import UserAPI, {
|
||||
UserProfileVO,
|
||||
import UserAPI from "@/api/system/user";
|
||||
import type {
|
||||
UserProfileVo,
|
||||
PasswordChangeForm,
|
||||
MobileUpdateForm,
|
||||
EmailUpdateForm,
|
||||
UserProfileForm,
|
||||
} from "@/api/system/user";
|
||||
} from "@/types/api";
|
||||
|
||||
import { ref, reactive } from "vue";
|
||||
import FileAPI from "@/api/file";
|
||||
import { useUserStoreHook } from "@/store";
|
||||
|
||||
@@ -239,7 +241,7 @@ import { Camera } from "@element-plus/icons-vue";
|
||||
|
||||
const userStore = useUserStoreHook();
|
||||
|
||||
const userProfile = ref<UserProfileVO>({});
|
||||
const userProfile = ref<UserProfileVo>({});
|
||||
|
||||
const enum DialogType {
|
||||
ACCOUNT = "account",
|
||||
@@ -251,7 +253,7 @@ const enum DialogType {
|
||||
const dialog = reactive({
|
||||
visible: false,
|
||||
title: "",
|
||||
type: "" as DialogType, // 修改账号资料,修改密码、绑定手机、绑定邮箱
|
||||
type: "" as DialogType, // 修改账号资料,修改密码、绑定手机、绑定邮箱"
|
||||
});
|
||||
const userProfileFormRef = ref();
|
||||
const passwordChangeFormRef = ref();
|
||||
|
||||
Reference in New Issue
Block a user