diff --git a/docs/.vitepress/theme/components/PixiJSContainer/index.vue b/docs/.vitepress/theme/components/PixiJSContainer/index.vue index 1554591..9d5d9c7 100644 --- a/docs/.vitepress/theme/components/PixiJSContainer/index.vue +++ b/docs/.vitepress/theme/components/PixiJSContainer/index.vue @@ -24,7 +24,7 @@ const message = useMessage() const containerRef = ref() const showHighlighted = ref(props.expand) -const isUsingTs = ref(true) +const isUsingTs = ref(!!props.sfcTsCode) const sfcTsCode = computed(() => decodeURIComponent(props.sfcTsCode)) const sfcJsCode = computed(() => decodeURIComponent(props.sfcJsCode)) @@ -50,7 +50,7 @@ async function onCopyCode() { -
- +
+