From e64f4b83c8f6cd01ea352ad7040e205613ea87d3 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期五, 14 七月 2023 22:39:34 +0800 Subject: [PATCH] update 优化 toggleRowSelection 缺失一个参数警告问题 --- src/views/system/user/profile/thirdParty.vue | 42 +++++++++++++++++++++--------------------- 1 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue index 2e4e722..c84805e 100644 --- a/src/views/system/user/profile/thirdParty.vue +++ b/src/views/system/user/profile/thirdParty.vue @@ -20,32 +20,29 @@ <div id="git-user-binding"> <h4 class="provider-desc">浣犲彲浠ョ粦瀹氫互涓嬬涓夋柟甯愬彿</h4> <div id="authlist" class="user-bind"> - <a class="third-app" href="#" @click="authUrl('gitee');" title="浣跨敤 Gitee 璐﹀彿鎺堟潈鐧诲綍"> - <div class="git-other-login-icon"> - <svg-icon icon-class="gitee" /> - </div> - <span class="app-name">Gitee</span> - </a> - - <a class="third-app" href="#" @click="authUrl('github');" title="浣跨敤 GitHub 璐﹀彿鎺堟潈鐧诲綍"> - <div class="git-other-login-icon"> - <svg-icon icon-class="github" /> - </div> - <span class="app-name">Github</span> - </a> - <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="#" @click="authUrl('qq');" title="浣跨敤 QQ 璐﹀彿鎺堟潈鐧诲綍"> + <a class="third-app" href="#" @click="authUrl('maxkey');" title="浣跨敤 MaxKey 璐﹀彿鎺堟潈鐧诲綍"> <div class="git-other-login-icon"> - <svg-icon icon-class="qq" /> + <svg-icon icon-class="maxkey" /> </div> - <span class="app-name">QQ</span> + <span class="app-name">MaxKey</span> + </a> + <a class="third-app" href="#" @click="authUrl('gitee');" title="浣跨敤 Gitee 璐﹀彿鎺堟潈鐧诲綍"> + <div class="git-other-login-icon"> + <svg-icon icon-class="gitee" /> + </div> + <span class="app-name">Gitee</span> + </a> + <a class="third-app" href="#" @click="authUrl('github');" title="浣跨敤 GitHub 璐﹀彿鎺堟潈鐧诲綍"> + <div class="git-other-login-icon"> + <svg-icon icon-class="github" /> + </div> + <span class="app-name">Github</span> </a> </div> </div> @@ -55,6 +52,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 +69,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(() => { }); }; @@ -82,7 +82,7 @@ if (res.code === 200) { window.location.href = res.data; } else { - ElMessage.error(res.msg); + proxy?.$modal.msgError(res.msg); } }); }; -- Gitblit v1.9.3