Ver código fonte

fix: 修复在代码生成进行编辑时,对字段信息中的字典类型已经设置后又置空后,提交无法更新的问题。

bozch 1 ano atrás
pai
commit
13d26703e0

+ 1 - 1
src/views/infra/codegen/components/ColumInfoForm.vue

@@ -95,7 +95,7 @@
     </el-table-column>
     </el-table-column>
     <el-table-column label="字典类型" min-width="12%">
     <el-table-column label="字典类型" min-width="12%">
       <template #default="scope">
       <template #default="scope">
-        <el-select v-model="scope.row.dictType" clearable filterable placeholder="请选择">
+        <el-select v-model="scope.row.dictType" :value-on-clear="''" clearable filterable placeholder="请选择">
           <template #header>
           <template #header>
             <div class="flex justify-end">
             <div class="flex justify-end">
               <el-popover
               <el-popover