| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { mapStores } from 'pinia'; |
| | | import missionApi from '@/api/missionApi'; |
| | | import { useFetchData } from '@/composables/fetchData'; |
| | | import { useMissionStore } from '@/stores/mission'; |
| | | |
| | | export default { |
| | | setup() { |
| | |
| | | index: undefined |
| | | }; |
| | | }, |
| | | computed: { |
| | | ...mapStores(useMissionStore) |
| | | }, |
| | | methods: { |
| | | fetchMission() { |
| | | this.fetchData((page, pageSize) => { |
| | |
| | | .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); |
| | | // } |