From 7eb37a37fbe43780c6c49bde4bcf7459d579d54d Mon Sep 17 00:00:00 2001 From: skytek_xinliang Date: Tue, 29 Sep 2026 09:25:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A8=BB=E5=86=8A=E9=A0=81=E5=8E=BB?= =?UTF-8?q?=E8=AD=98=E5=88=A5=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/citizen-frontend/src/api/auth.ts | 2 +- app/citizen-frontend/src/api/types.ts | 6 +- app/citizen-frontend/src/pages/register.vue | 96 ++++----------------- app/citizen-frontend/src/stores/app.ts | 17 +--- 4 files changed, 22 insertions(+), 99 deletions(-) diff --git a/app/citizen-frontend/src/api/auth.ts b/app/citizen-frontend/src/api/auth.ts index 250b397..41e056a 100644 --- a/app/citizen-frontend/src/api/auth.ts +++ b/app/citizen-frontend/src/api/auth.ts @@ -30,7 +30,7 @@ export function login( .json(); } -/** 註冊帳號並建立完整個人資料。 */ +/** 使用手機門號、密碼與個資同意狀態註冊帳號。 */ export function register(request: RegisterRequest): Promise { return api.post("v1/auth/register", { json: request }).json(); } diff --git a/app/citizen-frontend/src/api/types.ts b/app/citizen-frontend/src/api/types.ts index ffea34c..a025653 100644 --- a/app/citizen-frontend/src/api/types.ts +++ b/app/citizen-frontend/src/api/types.ts @@ -113,10 +113,12 @@ export interface Profile extends ProfileRequest { updatedAt: string; } -/** 註冊請求:建立帳號並同時建立完整個人資料。 */ -export interface RegisterRequest extends ProfileRequest { +/** 註冊請求:僅建立帳號,個人資料由後續流程另行保存。 */ +export interface RegisterRequest { phone: string; password: string; + consent: boolean; + consentVersion: ConsentVersion; } /** 登入請求。 */ diff --git a/app/citizen-frontend/src/pages/register.vue b/app/citizen-frontend/src/pages/register.vue index a99beca..1c64e28 100644 --- a/app/citizen-frontend/src/pages/register.vue +++ b/app/citizen-frontend/src/pages/register.vue @@ -30,7 +30,6 @@ v-model="form.phone" class="mb-3" color="primary" - hint="手機門號註冊後不可由個人資料修改" label="手機號碼" persistent-hint type="tel" @@ -59,15 +58,15 @@ - + /> --> - + - + /> --> - +