Skip to content

Commit bea2ce7

Browse files
committed
fix: add missing watch
1 parent c406c75 commit bea2ce7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const SyntaxHighlight = defineComponent({
3434
const isLoading = ref(true)
3535

3636
watch(
37-
() => [shiki.value, props.theme],
37+
() => [shiki.value, props.theme, props.lang],
3838
() => {
3939
if (shiki.value) load(shiki.value)
4040
},

0 commit comments

Comments
 (0)