diff --git a/src/components/Table/Userinfo/UserinfoDialog.vue b/src/components/Table/Userinfo/UserinfoDialog.vue index 8aa634a..430d204 100644 --- a/src/components/Table/Userinfo/UserinfoDialog.vue +++ b/src/components/Table/Userinfo/UserinfoDialog.vue @@ -14,9 +14,12 @@ const loading = ref(false); * * 获取用户信息 */ const getUserInfo = async () => { - // 如果没有传入用户ID直接返回 - if (!props.userId) return; loading.value = true; + // 如果没有传入用户ID直接返回 + if (!props.userId) { + loading.value = false; + return; + } // 判断是否是web端 const result = await fetchGetUserinfoById({ id: props.userId }); @@ -33,42 +36,100 @@ onMounted(() => {