保誠-保戶業務員媒合平台
PAMapp/store/index.ts
@@ -1,5 +1,5 @@
import { Module, VuexModule, Mutation, Action } from 'vuex-module-decorators'
import { ClientInfo, getMyAppointmentList } from '~/assets/ts/api/appointment';
import { allAppointmentsView, ClientInfo, getMyAppointmentList } from '~/assets/ts/api/appointment';
// import * as consultant from '~/assets/ts/api/consultant';
import { Consultants,recommend,AgentOfStrictQuery, getFavoriteConsultant, addFavoriteConsultant, deleteConsultant, strictQuery } from '~/assets/ts/api/consultant';
import { isLogin } from '~/assets/ts/auth';
@@ -97,9 +97,10 @@
    }
    @Action
    storeMyAppointmentList() {
        getMyAppointmentList().then((data) => {
            this.context.commit('updateMyAppointmentList', data)
    async storeMyAppointmentList() {
        return await getMyAppointmentList().then((data) => {
            this.context.commit('updateMyAppointmentList', data);
            return data.filter(item => !item.consultantViewTime || item.consultantViewTime === null).length
        });
    }