<template>
  <div class="w100%">
    <diyIndex v-if="dataInfo && dataInfo.isHome" :dataInfo="dataInfo"></diyIndex>
  </div>
</template>

<script setup lang="ts">
import { getIndexDiyPcPage } from '@/api/home/diy';
import diyIndex from '@/views/home/pccomponents/index.vue';
const dataInfo = ref<any>(null);

getIndexDiyPcPage({ type: 1 }).then((res) => {
  if (res.code == 200) {
    dataInfo.value = res.data;
  }
});
</script>

<style lang="scss" scoped></style>
