From 435fa4eca47eab9b41f254dd55dc6572244b96a4 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期二, 18 七月 2023 12:34:30 +0800 Subject: [PATCH] Update: 依據來源 url parameters 切換 banner (FILM1: education, FILM2: Health) --- PAMapp/store/index.ts | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/PAMapp/store/index.ts b/PAMapp/store/index.ts index f4120ca..cd5d2fe 100644 --- a/PAMapp/store/index.ts +++ b/PAMapp/store/index.ts @@ -8,6 +8,7 @@ import { AppointmentLog } from '~/shared/models/appointment.model'; import { AgentOfStrictQuery, StrictQueryParams } from '~/shared/models/strict-query.model'; import { NotificationList } from '~/shared/models/reviews.model'; +import {AccessFroms} from "~/shared/services/utils.service"; @Module export default class Store extends VuexModule { @@ -20,6 +21,8 @@ unReviewLogList: AppointmentLog[] = []; notificationList: NotificationList[] = []; + accessFrom: AccessFroms | null = null; + get isUserLogin() { return this.context.getters['localStorage/isUserLogin']; } @@ -31,6 +34,15 @@ : this.strictQueryList; } + get fromAccess(): AccessFroms | null { + return this.accessFrom; + } + + @Mutation + setAccessSource(from: AccessFroms) { + this.accessFrom = from; + } + @Mutation updateRecommend(data: Consultant[]) { this.recommendList = data; -- Gitblit v1.8.0