src/components/search/OptionMission.vue
@@ -31,7 +31,7 @@ type: String, modelValue: String }, emits: ['update:modelValue', 'change'], emits: ['update:modelValue', 'initOver'], data() { return { index: undefined @@ -46,6 +46,7 @@ if (res.success && res.data.length > 0) { this.index = 0; this.handleChange(0); this.$emit('initOver'); } }); }, @@ -54,7 +55,13 @@ } }, mounted() { this.fetchMission(); if (this.missionStore.missionList.length == 0) { this.fetchMission(); } else { this.index = 0; this.handleChange(0); this.$emit('initOver'); } } }; </script>