| | |
| | | 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<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(() => { }); |
| | | }; |
| | |
| | | if (res.code === 200) { |
| | | window.location.href = res.data; |
| | | } else { |
| | | ElMessage.error(res.msg); |
| | | proxy?.$modal.msgError(res.msg); |
| | | } |
| | | }); |
| | | }; |