From d277d770292df0a1266c07f4773d62edd70e6515 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 13 五月 2024 17:59:16 +0800 Subject: [PATCH] 新增场景标注 --- src/components/search/OptionMission.vue | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/components/search/OptionMission.vue b/src/components/search/OptionMission.vue index 8322c9d..5ac3d51 100644 --- a/src/components/search/OptionMission.vue +++ b/src/components/search/OptionMission.vue @@ -18,8 +18,10 @@ </template> <script> +import { mapStores } from 'pinia'; import missionApi from '@/api/missionApi'; import { useFetchData } from '@/composables/fetchData'; +import { useMissionStore } from '@/stores/mission'; export default { setup() { @@ -37,6 +39,9 @@ index: undefined }; }, + computed: { + ...mapStores(useMissionStore) + }, methods: { fetchMission() { this.fetchData((page, pageSize) => { @@ -44,6 +49,7 @@ .fethchMission({ type: this.type, page, pageSize }) .then((res) => { this.missionList = res.data; + this.missionStore.missionList = res.data; // if (this.missionList.length > 0) { // this.handleChange(0); // } -- Gitblit v1.9.3