From 785a57e89f99ec350f029f9a85a450839324babf Mon Sep 17 00:00:00 2001
From: jack <jack.su@pollex.com.tw>
Date: 星期五, 21 七月 2023 09:38:42 +0800
Subject: [PATCH] Merge branch '2023_CR' into 2023_CR2

---
 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