Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: unexpected placeholder (#10297)
Liu Ji1143ef30c3a8
diff --git a/frontend/src/components/MonacoEditor/MonacoTextModelEditor.vue b/frontend/src/components/MonacoEditor/MonacoTextModelEditor.vueindex 9884dab700..fd8631e0b1 100644--- a/frontend/src/components/MonacoEditor/MonacoTextModelEditor.vue+++ b/frontend/src/components/MonacoEditor/MonacoTextModelEditor.vue@@ -7,7 +7,7 @@<BBSpin /></div><div- v-if="ready && !content && placeholder"+ v-if="ready && !contentRef && placeholder"class="absolute pointer-events-none font-mono text-control-placeholder"style="font-family: 'Droid Sans Mono', monospace;@@ -31,7 +31,6 @@ import {onBeforeUnmount,watch,watchEffect,- computed,} from "vue";import { useLegacyAutoComplete } from "@/plugins/sql-lsp/client";import type { SQLDialect } from "@/types";@@ -98,6 +97,7 @@ const containerRef = ref<HTMLDivElement>();// use shallowRef to avoid deep conversion which will cause page crash.const editorRef = shallowRef<IStandaloneCodeEditor>();const ready = ref(false);+const contentRef = ref("");onMounted(async () => {const container = containerRef.value;@@ -151,8 +151,10 @@ onMounted(async () => {editor.focus();}+ contentRef.value = content.value;watch(content, () => {emit("update:content", content.value);+ contentRef.value = content.value;});watchEffect(() => {emit("select-content", selectedContent.value);@@ -162,10 +164,6 @@ onMounted(async () => {}});-const content = computed(() => {- return props.model?.getValue();-});-onBeforeUnmount(() => {editorRef.value?.dispose();});