feat: HttpOnly Cookie 登入狀態初始化
This commit is contained in:
@@ -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() ||
|
||||
|
||||
Reference in New Issue
Block a user