From a681353fe1babd44562b60be0bbac70bfa7c2175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=96=AF=E7=8B=82=E7=9A=84=E7=8B=AE=E5=AD=90Li?= <15040126243@163.com> Date: Wed, 12 Jul 2023 10:48:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=20=E8=A7=A3=E7=BB=91?= =?UTF-8?q?=E4=B8=89=E6=96=B9=E5=BA=94=E7=94=A8=E4=B8=8D=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/profile/thirdParty.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue index 2e4e722..6879c1c 100644 --- a/src/views/system/user/profile/thirdParty.vue +++ b/src/views/system/user/profile/thirdParty.vue @@ -56,6 +56,8 @@ import { authUnlock, authBinding } from "@/api/system/social/auth"; import { PropType } from "vue"; +const { proxy } = getCurrentInstance() as ComponentInternalInstance; + const props = defineProps({ auths: { type: Object as PropType, @@ -70,9 +72,10 @@ const unlockAuth = (row: any) => { return authUnlock(row.id); }).then((res: any) => { if (res.code === 200) { - ElMessage.success("解绑成功"); + proxy?.$modal.msgSuccess("解绑成功"); + proxy?.$tab.refreshPage(); } else { - ElMessage.error(res.msg); + proxy?.$modal.msgError(res.msg); } }).catch(() => { }); }; @@ -82,7 +85,7 @@ const authUrl = (source: string) => { if (res.code === 200) { window.location.href = res.data; } else { - ElMessage.error(res.msg); + proxy?.$modal.msgError(res.msg); } }); };