Skip to content

Commit

Permalink
fix: when demoblock i18n is empty, the component reports an error
Browse files Browse the repository at this point in the history
  • Loading branch information
xinlei3166 committed Aug 18, 2021
1 parent f84a2e1 commit db90f4e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/Demo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default {
const blockClass = computed(() => {
return `demo-${component.value}`
})
console.log(data)
const locale = computed(() => {
return data.theme.value.demoblock?.[data.localePath.value] ?? {
'hide-text': '隐藏代码',
Expand Down

0 comments on commit db90f4e

Please sign in to comment.