This commit is contained in:
xuyue committed 2025-02-24 14:58:33 +08:00
1 parent ae160fa996
commit 45eaa3f5fa
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -3,7 +3,7 @@
</template>
<script lang="ts" setup>
import { html, css } from "../store.ts"
import { html, css, js } from "../store.ts"
import { onMounted, useTemplateRef, watch } from "vue"
const iframe = useTemplateRef<HTMLIFrameElement>("iframe")
@@ -23,6 +23,7 @@ function preview() {
</head>
<body>
${html.value}
<script>${js.value}<\/script>
</body>
</html>`)
doc.close()