From 757fb3db9fbf7aeee9b04a7be4b87e7649928e2f Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Sun, 13 Oct 2024 03:06:51 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E2=99=BB=EF=B8=8F=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Table/Userinfo/UserinfoDialog.vue | 126 +++++++++++++----- src/components/Table/Userinfo/columns.tsx | 20 --- src/views/system/adminUser/utils/columns.tsx | 2 +- 3 files changed, 94 insertions(+), 54 deletions(-) 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(() => {