重命名组件名称

(cherry picked from commit f17bb9a7eb)
This commit is contained in:
绮梦 2023-08-23 13:40:57 +08:00 committed by shizhong
parent 2804d199c0
commit 3ee076d0d9
6 changed files with 15 additions and 11 deletions

View File

@ -0,0 +1,7 @@
<script setup lang="ts"></script>
<template>
<span>基础信息</span>
</template>
<style scoped lang="scss"></style>

View File

@ -142,28 +142,25 @@
</el-card>
</el-row>
</div>
<!-- 表单弹窗添加/修改 -->
<UserForm ref="formRef" @success="getUserData(user.id)" />
<UserForm ref="formRef" v-if="user.id" @success="getUserData(user.id)" />
</template>
<script setup lang="ts">
// TODO @ vue
import PointList from '@/views/member/user/components/point-list.vue'
import SignList from '@/views/member/user/components/sign-list.vue'
import CardTitle from '@/views/member/user/components/card-title.vue'
// TODO @UserApi
import { getUser, UserBaseInfoVO } from '@/api/member/user'
import PointList from '@/views/member/user/components/PointList.vue'
import SignList from '@/views/member/user/components/SignList.vue'
import CardTitle from '@/views/member/user/components/CardTitle.vue'
import * as UserApi from '@/api/member/user'
import { formatDate } from '@/utils/formatTime'
import { DICT_TYPE } from '@/utils/dict'
import UserForm from '@/views/member/user/UserForm.vue'
// TODO @ AccountInfo
import AccountInfo from '@/views/member/user/components/account-info.vue'
import AccountInfo from '@/views/member/user/components/AccountInfo.vue'
defineOptions({ name: 'MemberDetail' })
const activeName = ref('point') // tabs
const loading = ref(true) //
let user = ref<UserBaseInfoVO>({
let user = ref<UserApi.UserBaseInfoVO>({
areaId: undefined,
avatar: undefined,
birthday: undefined,
@ -185,7 +182,7 @@ let user = ref<UserBaseInfoVO>({
const getUserData = async (id: number) => {
loading.value = true
try {
user.value = await getUser(id)
user.value = await UserApi.getUser(id)
} finally {
loading.value = false
}