From 2b11d338e059275ccb074c0f08a0019cac6b78ea Mon Sep 17 00:00:00 2001 From: jack <jack.su@pollex.com.tw> Date: 星期二, 12 九月 2023 15:49:10 +0800 Subject: [PATCH] [UPDATE] 解決弱點Unlogged security exception --- PAMapp/components/ReviewRecords/ReviewRecords.vue | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/PAMapp/components/ReviewRecords/ReviewRecords.vue b/PAMapp/components/ReviewRecords/ReviewRecords.vue index 422c3a1..e1c3fb0 100644 --- a/PAMapp/components/ReviewRecords/ReviewRecords.vue +++ b/PAMapp/components/ReviewRecords/ReviewRecords.vue @@ -11,14 +11,14 @@ </section> <div class="user-reviews-page"> - <template v-if="myAppointmentReviewLogList.length"> + <template v-if="reviewLogList.length"> <section class="user-reviews-content"> <div class="user-reviews-card" - v-for="(appointmentLog, index) in myAppointmentReviewLogList" + v-for="(appointmentLog, index) in reviewLogList" :key="index"> <div class="user-reviews-card-content" v-if="isUserLogin"> - �撠�<span class="mdTxt">{{ ` ${appointmentLog.agentName} ` }}</span>���� <UiReviewScore :score="appointmentLog.score" /> 閰嚗� + �撠�<span class="mdTxt">{{ ` ${appointmentLog.type === 'APPOINTMENT' ? appointmentLog.agentName : '撟喳'} ` }}</span>���� <UiReviewScore :score="appointmentLog.score" /> 閰嚗� </div> <div class="user-reviews-card-content" v-else> {{ `${appointmentLog.customerName} `}} 撠���� <UiReviewScore :score="appointmentLog.score" /> 閰嚗� @@ -55,17 +55,19 @@ </template> <script lang="ts"> import { AppointmentLog } from '~/shared/models/appointment.model'; -import { Vue, Component, Prop } from 'nuxt-property-decorator'; +import { Vue, Component, Prop, Watch } from 'nuxt-property-decorator'; import authService from '~/shared/services/auth.service'; @Component export default class ReviewRecords extends Vue{ + @Prop() - myAppointmentReviewLogList!: AppointmentLog[]; + reviewLogList!: AppointmentLog[]; isUserLogin = false; ////////////////////////////////////////////////////////////////////// + mounted() { this.isUserLogin = authService.isUserLogin(); } -- Gitblit v1.8.0