Skip to content

Commit 3637078

Browse files
fix ver fcanvas in preview
1 parent 3308e51 commit 3637078

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.vitepress/theme/components/Preview.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525

2626
<script lang="ts" setup>
2727
import { ref, computed } from "vue"
28-
import { version } from "../../../package.json"
28+
import { version as vDoc } from "../../../package.json"
29+
30+
const version = vDoc.slice(0, vDoc.indexOf("-docs") >>> 0)
2931
3032
const tab = ref<"code" | "prev">("code")
3133

0 commit comments

Comments
 (0)