Skip to content

Commit

Permalink
fix: extension check abnormal (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
dribble-njr authored Jan 10, 2025
1 parent 1dc3693 commit 5094d90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/CodemirrorEditor/EditorHeader/PostInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function onUpdate(val: boolean) {
}
onMounted(() => {
extensionInstalled.value = window.$syncer !== `undefined`
extensionInstalled.value = window.$syncer !== undefined
})
</script>

Expand Down Expand Up @@ -125,7 +125,7 @@ onMounted(() => {
<Button variant="outline" @click="dialogVisible = false">
取 消
</Button>
<Button @click="post">
<Button :disabled="!extensionInstalled" @click="post">
确 定
</Button>
</DialogFooter>
Expand Down

0 comments on commit 5094d90

Please sign in to comment.