diff --git a/packages/vuepress-theme-reco/mixins/codeTheme.js b/packages/vuepress-theme-reco/mixins/codeTheme.js index 5d96372..2e40963 100644 --- a/packages/vuepress-theme-reco/mixins/codeTheme.js +++ b/packages/vuepress-theme-reco/mixins/codeTheme.js @@ -1,6 +1,7 @@ export default { created () { - switch (this.$themeConfig.codeTheme) { + const { codeTheme = 'tomorrow' } = this.$themeConfig + switch (codeTheme) { case 'coy': import('prismjs/themes/prism-coy.css') break