riku
2025-02-21 c35074e0e33054bb6c5ada22f8104422ae953b17
src/components/search/OptionDevice.vue
@@ -18,7 +18,7 @@
</template>
<script>
import { deviceList } from '@/constant/device-type';
// import { deviceList } from '@/constant/device-type';
import { mapStores } from 'pinia';
import { useDeviceStore } from '@/stores/device';
@@ -27,7 +27,7 @@
    type: String,
    modelValue: String
  },
  emits: ['update:modelValue'],
  emits: ['update:modelValue', 'initOver'],
  data() {
    return {};
  },
@@ -61,6 +61,7 @@
      this.deviceStore.fetchDevice().then((res) => {
        if (res.success && res.data.length > 0) {
          this.handleChange(this.deviceOptions[0].value);
          this.$emit('initOver');
        }
      });
    },