From 4ffc0db28966ad106ded6ff0058c2dad7850bf78 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期五, 12 十一月 2021 16:19:03 +0800 Subject: [PATCH] TODO#130024 [顧問細節] API 串接 --- PAMapp/store/index.ts | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/PAMapp/store/index.ts b/PAMapp/store/index.ts index d175d60..cc3a13b 100644 --- a/PAMapp/store/index.ts +++ b/PAMapp/store/index.ts @@ -1,18 +1,23 @@ import { Module, VuexModule, Mutation, Action } from 'vuex-module-decorators' -import { Consultants } from '~/assets/ts/api/consultant'; -import { recommend } from '~/assets/ts/api/consultant' +import { Consultants,recommend,AgentOfStrictQuery} from '~/assets/ts/api/consultant'; + @Module export default class Store extends VuexModule { recommendList: Consultants[] | null = null; + strictQueryList: AgentOfStrictQuery[] = []; @Mutation updateRecommend(data: Consultants[]) { this.recommendList = data; } + @Mutation updateStrictQueryList(data: AgentOfStrictQuery[]) { + this.strictQueryList = data; + } + @Action storeRecommendList() { recommend().then(res => { this.context.commit('updateRecommend', res.data) - }) + }) } } \ No newline at end of file -- Gitblit v1.8.0