Преглед на файлове

fix: 修复唯一约束配置为空时,编辑界面中无法增加配置项的bug

喵你个旺呀 преди 1 година
родител
ревизия
ce3033505f
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      Web/src/views/system/codeGen/component/editCodeGenDialog.vue

+ 1 - 0
Web/src/views/system/codeGen/component/editCodeGenDialog.vue

@@ -258,6 +258,7 @@ const getGlobalComponentSize = computed(() => {
 const openDialog = (row: any) => {
 const openDialog = (row: any) => {
 	state.ruleForm = JSON.parse(JSON.stringify(row));
 	state.ruleForm = JSON.parse(JSON.stringify(row));
   dbChanged().then(() => getColumnInfoList());
   dbChanged().then(() => getColumnInfoList());
+  state.ruleForm.tableUniqueList ??= [];
 	state.isShowDialog = true;
 	state.isShowDialog = true;
 	ruleFormRef.value?.resetFields();
 	ruleFormRef.value?.resetFields();
 };
 };