<template>
  <div class="">
    <div class="disk-list">
      <div v-for="item in diskList" :key="item.id" class="disk-item">
        <v-btn
          :to="{
            name: 'phone-id',
            params: {
              id: item.id,
            },
          }"
          >{{ item.diskName }}</v-btn
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      diskList: [],
    };
  },
  async fetch() {
    await this.getDiskList();
  },
  methods: {
    async getDiskList() {
      const res = await this.$axios.$get('/resources/v6/client/device/info/getDeviceList');
      this.diskList = res.data.diskInfo;
    },
  },
};
</script>

