From 031d83828a20b7bc56c1723fe4eaa67fd9d8cd07 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 14 十二月 2023 00:44:12 +0800 Subject: [PATCH] update 代码规范化 --- src/views/system/user/profile/userInfo.vue | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/views/system/user/profile/userInfo.vue b/src/views/system/user/profile/userInfo.vue index 5ea5456..885f1c9 100644 --- a/src/views/system/user/profile/userInfo.vue +++ b/src/views/system/user/profile/userInfo.vue @@ -24,12 +24,10 @@ <script setup lang="ts"> import { updateUserProfile } from '@/api/system/user'; +import { propTypes } from '@/utils/propTypes'; const props = defineProps({ - user: { - type: Object as PropType<any>, - required: true - } + user: propTypes.any.isRequired }); const userForm = computed(() => props.user); const { proxy } = getCurrentInstance() as ComponentInternalInstance; -- Gitblit v1.9.3