Commit 10ff4b11 by ningjihai

项目新增第二步修改bug

parent 0a81c04d
......@@ -141,7 +141,7 @@
<div class="schema-header">
<div class="section-title">SCHEMA</div>
<div class="schema-select-all">
<span class="schema-count">{{ selectedSchemas.length }}/{{ allSchemasCompute.length }}</span>
<span class="schema-count">{{ selectedSchemas.length }}/{{ allSchemasCompute?.length }}</span>
</div>
</div>
......@@ -694,9 +694,14 @@ watch(selectedDomains, (newVal) => {
}, { deep: true })
// 修改数据源监听器,确保编辑模式下正确显示schema
watch(selectedDbDetails, async (newVal, oldVal) => {
watch(selectedDbDetails.value, async (newVal, oldVal) => {
console.log('数据源监听器')
if(newVal.length > 0) {
if(JSON.stringify(newVal) !== JSON.stringify(oldVal)) {
console.log('数据源监听器2')
console.log(newVal)
console.log(oldVal)
if(JSON.stringify(newVal)) {
console.log('数据源监听器3')
await fetchAllSchemas(newVal)
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论