添加登录功能

This commit is contained in:
xuyue committed 2025-02-28 16:20:58 +08:00
1 parent 81706fc48d
commit 28abe1b429
13 files changed
+181 -14

No files matched your search

+2 -2
View File
@@ -17,7 +17,7 @@
</template>
<script lang="ts" setup>
import { Icon } from "@iconify/vue"
import { css, html, js, tab } from "../store"
import { html, css, js, tab } from "../store/editors"
import { onMounted, ref, useTemplateRef, watch } from "vue"
import { marked } from "marked"
import { useStorage } from "@vueuse/core"
@@ -61,7 +61,7 @@ function addButton() {
const btn = copy.children[1] as HTMLDivElement
btn.onclick = () => {
tab.value = lang
const content = pre.children[1].textContent
const content = pre.children[1].textContent!
if (lang === "html") html.value = content
if (lang === "css") css.value = content
if (lang === "js") js.value = content