From 64aea65cef859dd15f2710669dd0375daf6f7c29 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期三, 12 七月 2023 11:14:18 +0800 Subject: [PATCH] fix 修复 删除无用的参数获取 --- src/views/system/user/profile/thirdParty.vue | 15 +++++++++------ 1 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue index 51c8ba8..6879c1c 100644 --- a/src/views/system/user/profile/thirdParty.vue +++ b/src/views/system/user/profile/thirdParty.vue @@ -34,14 +34,14 @@ <span class="app-name">Github</span> </a> - <a class="third-app" href="#" title="鍔熻兘寮�鍙戜腑..."> + <a class="third-app" href="#" @click="authUrl('wechar');" title="浣跨敤 寰俊 璐﹀彿鎺堟潈鐧诲綍"> <div class="git-other-login-icon"> <svg-icon icon-class="wechat" /> </div> <span class="app-name">WeiXin</span> </a> - <a class="third-app" href="#" title="鍔熻兘寮�鍙戜腑..."> + <a class="third-app" href="#" @click="authUrl('qq');" title="浣跨敤 QQ 璐﹀彿鎺堟潈鐧诲綍"> <div class="git-other-login-icon"> <svg-icon icon-class="qq" /> </div> @@ -55,6 +55,8 @@ <script lang="ts" setup> import { authUnlock, authBinding } from "@/api/system/social/auth"; import { PropType } from "vue"; + +const { proxy } = getCurrentInstance() as ComponentInternalInstance; const props = defineProps({ auths: { @@ -70,9 +72,10 @@ return authUnlock(row.id); }).then((res: any) => { if (res.code === 200) { - ElMessage.success("瑙g粦鎴愬姛"); + proxy?.$modal.msgSuccess("瑙g粦鎴愬姛"); + proxy?.$tab.refreshPage(); } else { - ElMessage.error(res.msg); + proxy?.$modal.msgError(res.msg); } }).catch(() => { }); }; @@ -80,9 +83,9 @@ const authUrl = (source: string) => { authBinding(source).then((res: any) => { if (res.code === 200) { - window.location.href = res.msg; + window.location.href = res.data; } else { - ElMessage.error(res.msg); + proxy?.$modal.msgError(res.msg); } }); }; -- Gitblit v1.9.3