indexDiy.vue 465 B

12345678910111213141516171819
  1. <template>
  2. <div class="w100%">
  3. <diyIndex v-if="dataInfo && dataInfo.isHome" :dataInfo="dataInfo"></diyIndex>
  4. </div>
  5. </template>
  6. <script setup lang="ts">
  7. import { getIndexDiyPcPage } from '@/api/home/diy';
  8. import diyIndex from '@/views/home/pccomponents/index.vue';
  9. const dataInfo = ref<any>(null);
  10. getIndexDiyPcPage({ type: 1 }).then((res) => {
  11. if (res.code == 200) {
  12. dataInfo.value = res.data;
  13. }
  14. });
  15. </script>
  16. <style lang="scss" scoped></style>