| | |
| | | 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 { |
| | |
| | | unReviewLogList: AppointmentLog[] = []; |
| | | notificationList: NotificationList[] = []; |
| | | |
| | | accessFrom: AccessFroms | null = null; |
| | | |
| | | get isUserLogin() { |
| | | return this.context.getters['localStorage/isUserLogin']; |
| | | } |
| | |
| | | : this.strictQueryList; |
| | | } |
| | | |
| | | get fromAccess(): AccessFroms | null { |
| | | return this.accessFrom; |
| | | } |
| | | |
| | | @Mutation |
| | | setAccessSource(from: AccessFroms) { |
| | | this.accessFrom = from; |
| | | } |
| | | |
| | | @Mutation |
| | | updateRecommend(data: Consultant[]) { |
| | | this.recommendList = data; |