index.vue 714 B

123456789101112131415161718192021222324252627282930313233343536
  1. <script setup lang="ts">
  2. /*
  3. * 组件名: cocos
  4. * 组件用途: cocos外框
  5. * 创建日期: 2024/8/21
  6. * 编写者: JutarryWu
  7. */
  8. const userId = sessionStorage.getItem('userId')
  9. const src = `http://49.232.26.44:8213/?userId=${userId}`
  10. async function exec() {
  11. }
  12. onMounted(() => {
  13. exec()
  14. })
  15. </script>
  16. <template>
  17. <section class="app-container">
  18. <div v-if="false" class="absolute top-[12px] right-[12px] z-[999] cursor-pointer">
  19. <van-icon name="arrow-up" class="text-[24px] text-[#fff]" />
  20. </div>
  21. <iframe
  22. :src="src"
  23. width="100%"
  24. height="100%"
  25. frameborder="0"
  26. scrolling="no"
  27. />
  28. </section>
  29. </template>
  30. <style scoped lang="less">
  31. .app-container {
  32. }
  33. </style>