From 5006642354c1661a65f1e375f460cca56955969e Mon Sep 17 00:00:00 2001 From: v6ole Date: Fri, 26 Jun 2026 11:30:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=81=E5=BE=AE=E7=BB=91=E5=AE=9A?= =?UTF-8?q?=E5=85=A5=E5=8F=A3=20=E2=80=94=20BindWechat.vue=20+=20=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 /bind-wechat 公开路由: - 页面加载后自动重定向到企微 OAuth 授权页 - scope=snsapi_base (静默授权,无需用户确认) - 回调到 /login?wecom_code=xxx → 自动绑定 用法: 企微工作台应用主页设为 https://qj.dhdx.fun/bind-wechat Co-Authored-By: Claude --- frontend/src/router/index.ts | 6 ++++++ frontend/src/views/BindWechat.vue | 30 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 frontend/src/views/BindWechat.vue diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 3533947..87eec57 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -16,6 +16,12 @@ const router = createRouter({ component: () => import('@/views/BindWecom.vue'), meta: { public: true }, }, + { + path: '/bind-wechat', + name: 'BindWechat', + component: () => import('@/views/BindWechat.vue'), + meta: { public: true }, + }, // Mobile routes (manager-facing) { path: '/m', diff --git a/frontend/src/views/BindWechat.vue b/frontend/src/views/BindWechat.vue new file mode 100644 index 0000000..060ffcc --- /dev/null +++ b/frontend/src/views/BindWechat.vue @@ -0,0 +1,30 @@ + + + + +