Skip to content

Commit

Permalink
fixed: 修复复用代码高级模式不展示可选项的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Sep 17, 2024
1 parent 8733b24 commit a8e6dc3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions web/src/view/systemTools/autoCode/component/fieldDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
import { toLowerCase, toSQLLine } from '@/utils/stringFun'
import { getSysDictionaryList } from '@/api/sysDictionary'
import WarningBar from '@/components/warningBar/warningBar.vue'
import { ref } from 'vue'
import { ref,onMounted } from 'vue'
import { ElMessageBox } from 'element-plus'
import {getColumn, getTable} from "@/api/autoCode";
Expand Down Expand Up @@ -423,7 +423,7 @@ const selectDB = async (val) => {
const res = await getColumn({
tableName: val
})
console.log(res)
if (res.code === 0) {
let list = res.data.columns; // 确保这里正确获取到 tables 数组
dbColumnList.value = list.map(item => ({
Expand All @@ -443,4 +443,10 @@ const selectDB = async (val) => {
const fieldDialogForm = ref(null)
defineExpose({ fieldDialogForm })
onMounted(()=>{
if(middleDate.value.dataSource.table){
selectDB(middleDate.value.dataSource.table)
}
})
</script>

0 comments on commit a8e6dc3

Please sign in to comment.