code lint

This commit is contained in:
2025-03-06 00:12:38 +08:00
parent 6d6c69cf37
commit b1593b1c8e
11 changed files with 104 additions and 80 deletions

View File

@@ -32,13 +32,9 @@ const props = withDefaults(defineProps<Props>(), {
const code = defineModel<string>("value")
const lang = computed(() => {
if (props.language === "html") {
return html()
} else if (props.language === "css") {
return css()
} else {
return javascript()
}
if (props.language === "html") return html()
if (props.language === "css") return css()
return javascript()
})
</script>
<template>