This commit is contained in:
2025-10-04 14:36:30 +08:00
parent dfa8d970f2
commit fce96f2087

View File

@@ -28,7 +28,7 @@ interface Props {
}
const props = withDefaults(defineProps<Props>(), {
language: "C",
language: "Python3",
fontSize: 20,
height: "100%",
readonly: false,
@@ -40,7 +40,7 @@ const code = defineModel<string>("value")
const isDark = useDark()
const lang = computed(() => {
if (props.language === "Python3" || props.language === "Python2") {
if (["Python2", "Python3"].includes(props.language)) {
return python()
}
return cpp()