Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 8, 2024
1 parent cfe947b commit 44be750
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/editor/EditorContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const props = defineProps<{
editorComponent: EditorComponentType
}>()
const { store, autoSave } = inject(injectKeyProps)!
const { store, autoSave, editorOptions } = inject(injectKeyProps)!
const showMessage = ref(getItem())
const onChange = debounce((code: string) => {
Expand All @@ -31,8 +31,6 @@ function getItem() {
watch(showMessage, () => {
setItem()
})
const { editorOptions } = inject(injectKeyProps)!
</script>

<template>
Expand Down

0 comments on commit 44be750

Please sign in to comment.