Newer
Older
Nanping_sponge_GCYPG / src / layout / components / IframeToggle / index.vue
@liyingjing liyingjing on 25 Oct 2023 513 bytes 工程预评估
  1. <template>
  2. <transition-group name="fade-transform" mode="out-in">
  3. <inner-link
  4. v-for="(item, index) in tagsViewStore.iframeViews"
  5. :key="item.path"
  6. :iframeId="'iframe' + index"
  7. v-show="route.path === item.path"
  8. :src="item.meta.link"
  9. ></inner-link>
  10. </transition-group>
  11. </template>
  12.  
  13. <script setup>
  14. import InnerLink from "../InnerLink/index"
  15. import useTagsViewStore from '@/store/modules/tagsView'
  16.  
  17. const route = useRoute();
  18. const tagsViewStore = useTagsViewStore()
  19. </script>