feat: HttpOnly Cookie 登入狀態初始化

This commit is contained in:
skytek_xinliang
2026-08-31 09:26:47 +08:00
parent db089ce267
commit 28cda7be1c
5 changed files with 60 additions and 7 deletions
+3 -3
View File
@@ -6,8 +6,8 @@
<v-card-title class="text-primary font-weight-bold"
>個人資料修改</v-card-title
>
<v-card-subtitle class="text-grey-darken-3"
>更新您的基本資料與緊急聯絡資訊。</v-card-subtitle
<v-card-subtitle class="text-grey-darken-3">
更新您的基本資料與緊急聯絡資訊。</v-card-subtitle
>
</v-card>
@@ -59,7 +59,7 @@
icon="mdi-lock-outline"
variant="tonal"
>
手機門號不可由個人資料修改
手機門號不可自行修改
</v-alert>
<v-text-field
@@ -513,7 +513,7 @@
</template>
<script setup lang="ts">
import { computed, onMounted, reactive, ref } from "vue";
import { computed, onMounted, reactive, ref, watch } from "vue";
import { useRouter } from "vue-router";
import type {
ChronicDisease,
@@ -687,16 +687,25 @@ function scrollToPageTop() {
window.scrollTo({ top: 0 });
}
function clearErrorMessage() {
errorMessage.value = "";
}
function goToPreviousStep() {
clearErrorMessage();
currentStep.value -= 1;
scrollToPageTop();
}
function goToNextStep() {
clearErrorMessage();
currentStep.value += 1;
scrollToPageTop();
}
watch(profileForm, clearErrorMessage);
watch(assessmentForm, clearErrorMessage);
function buildAssessmentRequest(): SelfAssessmentRequest | null {
if (
!profileForm.name.trim() ||