This commit is contained in:
2025-02-24 14:58:33 +08:00
parent ae160fa996
commit 45eaa3f5fa
2 changed files with 4 additions and 3 deletions

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()