index.vue 562 B

1234567891011121314151617181920
  1. <template>
  2. <view class="page-content">
  3. <mx-nav-bar title="我的测评"/>
  4. <view class="p-30 fx-col gap-30">
  5. <component v-for="b in blocks" v-bind="b" :is="blockMap[b.is]"/>
  6. </view>
  7. </view>
  8. </template>
  9. <script setup>
  10. import {useProvidePageConfig} from "@/hooks/usePageConfigInjection";
  11. import TestGuideCard from "@/pages/test-center/index/components/test-guide-card.vue";
  12. const {blocks} = useProvidePageConfig('AllTest')
  13. const blockMap = {[TestGuideCard.name]: TestGuideCard}
  14. </script>
  15. <style lang="scss">
  16. </style>