保誠-保戶業務員媒合平台
jack
2023-07-21 785a57e89f99ec350f029f9a85a450839324babf
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;