index.vue 437 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <iframe :src="url" frameborder="0" class="iframe"></iframe>
  3. </template>
  4. <script lang="ts">
  5. import { ref } from "vue";
  6. export default {
  7. setup() {
  8. const url = ref(
  9. process.env.NODE_ENV === "production"
  10. ? "/manages/html/button.html"
  11. : "/html/button.html"
  12. );
  13. return {
  14. url
  15. };
  16. }
  17. };
  18. </script>
  19. <style scoped>
  20. .iframe {
  21. width: 98%;
  22. height: 90vh;
  23. border-radius: 6px;
  24. }
  25. </style>