From 477aeed1e33e79ed534820c2cd9def9cd118d57a Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期四, 02 十二月 2021 13:02:53 +0800 Subject: [PATCH] fixed TODO#131354 修改登入成功點選我知道了的跳轉頁面邏輯 (更正) --- PAMapp/components/AddAndReservedBtns.vue | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/PAMapp/components/AddAndReservedBtns.vue b/PAMapp/components/AddAndReservedBtns.vue index fe0f2e7..5c1afc5 100644 --- a/PAMapp/components/AddAndReservedBtns.vue +++ b/PAMapp/components/AddAndReservedBtns.vue @@ -1,7 +1,7 @@ <template> <el-row type="flex" justify="center" :class="cusClass"> <el-button @click="addConsultant(agentInfo)" :disabled="isAdded"> - <span> + 憿批��</span> + <span> {{isAdded ? '撌脣�憿批��' : '+ 憿批��'}}</span> </el-button> <el-button @click="reserveCommunication" @@ -11,15 +11,14 @@ </template> <script lang="ts"> -import { Vue, Component, Prop, Emit, Action, State } from 'nuxt-property-decorator'; +import { Vue, Component, Prop, Emit, Action, State, namespace } from 'nuxt-property-decorator'; import { Consultants } from '~/assets/ts/api/consultant'; -import { isLogin } from '~/assets/ts/auth'; +const localStorage = namespace('localStorage'); @Component export default class AddAndReservedBtns extends Vue { @Action addToMyConsultantList!: (consultantToAdd: Consultants) => Promise<boolean> @State('myConsultantList') myConsultantList!: Consultants[]; - @Prop() agentInfo!: Consultants; @Prop() cusClass!: string; isVisiblePopUp = false; @@ -30,7 +29,7 @@ } reserveCommunication() { - isLogin() ? this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`) : this.$router.push('/login'); + this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`); } @Emit('openPopUp') openPopUp(popUpTxt: string = '����憿批��') { -- Gitblit v1.8.0