This commit is contained in:
2024-12-22 18:48:47 +08:00
parent 84e0034a15
commit 873c2fbaec
5 changed files with 80 additions and 35 deletions

View File

@@ -3,7 +3,7 @@ import { Icon } from "@iconify/vue"
import { useMessage } from "naive-ui"
import SelectLanguage from "../components/SelectLanguage.vue"
import ThemeButton from "../components/ThemeButton.vue"
import { code, debug, loading, run, share, size } from "../composables/code"
import { loading, run, share, size } from "../composables/code"
const message = useMessage()
@@ -11,10 +11,6 @@ function handleShare() {
share()
message.success("分享链接已复制")
}
function handleDebug() {
debug.value = true
}
</script>
<template>
@@ -25,9 +21,6 @@ function handleDebug() {
<div class="title">徐越的自测猫</div>
</n-flex>
<n-flex>
<n-button quaternary type="error" v-if="code.value && code.language === 'python'" @click="handleDebug">
调试
</n-button>
<n-button quaternary @click="handleShare">分享</n-button>
<ThemeButton />
<n-input-number