From c09c089265103c991e521f396bdbd823b558fb65 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Tue, 17 Jun 2025 21:43:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=B8=AA=E4=BA=BA=E4=B8=AD?= =?UTF-8?q?=E5=BF=83=20=E8=B4=A6=E5=8F=B7=E7=BB=91=E5=AE=9A=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F/=E9=80=BB=E8=BE=91=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + apps/web-antd/src/views/_core/oauth-common.ts | 12 +- .../_core/profile/components/account-bind.vue | 171 ++++++++---------- 3 files changed, 78 insertions(+), 106 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a6d364e6..1f5ababc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ - 字典接口抛出异常(为什么会抛出异常?)无限调用接口 兼容处理 - 代码生成 字典下拉加载 改为每次进入编辑页面都加载 +- 个人中心 账号绑定 样式/逻辑重构 # 1.4.0 diff --git a/apps/web-antd/src/views/_core/oauth-common.ts b/apps/web-antd/src/views/_core/oauth-common.ts index a04599da..64c3ef30 100644 --- a/apps/web-antd/src/views/_core/oauth-common.ts +++ b/apps/web-antd/src/views/_core/oauth-common.ts @@ -1,6 +1,6 @@ import type { Component, CSSProperties } from 'vue'; -import { ref } from 'vue'; +import { markRaw, ref } from 'vue'; import { DEFAULT_TENANT_ID } from '@vben/constants'; import { @@ -69,32 +69,32 @@ export async function handleAuthBinding(source: string) { */ export const accountBindList: BindItem[] = [ { - avatar: GiteeIcon, + avatar: markRaw(GiteeIcon), description: '绑定Gitee账号', source: 'gitee', title: 'Gitee', style: { color: '#c71d23' }, }, { - avatar: GithubOAuthIcon, + avatar: markRaw(GithubOAuthIcon), description: '绑定Github账号', source: 'github', title: 'Github', }, { - avatar: SvgMaxKeyIcon, + avatar: markRaw(SvgMaxKeyIcon), description: '绑定MaxKey账号', source: 'maxkey', title: 'MaxKey', }, { - avatar: SvgTopiamIcon, + avatar: markRaw(SvgTopiamIcon), description: '绑定topiam账号', source: 'topiam', title: 'Topiam', }, { - avatar: SvgWechatIcon, + avatar: markRaw(SvgWechatIcon), description: '绑定wechat账号', source: 'wechat', title: 'Wechat', diff --git a/apps/web-antd/src/views/_core/profile/components/account-bind.vue b/apps/web-antd/src/views/_core/profile/components/account-bind.vue index 5e7854be..e7949a4a 100644 --- a/apps/web-antd/src/views/_core/profile/components/account-bind.vue +++ b/apps/web-antd/src/views/_core/profile/components/account-bind.vue @@ -1,108 +1,68 @@