yrik 4 gadi atpakaļ
vecāks
revīzija
62e2caaa4d
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      ruoyi-ui/src/views/tool/gen/editTable.vue

+ 4 - 1
ruoyi-ui/src/views/tool/gen/editTable.vue

@@ -762,7 +762,10 @@
           let data = response.data
           let data = response.data
           data.foreignKey = data.foreignKey ? data.foreignKey - 0 : ''
           data.foreignKey = data.foreignKey ? data.foreignKey - 0 : ''
           this.formZd = data;
           this.formZd = data;
-          this.ForeName = data.fkInfo.value
+          if(data.fkInfo !== null){
+            this.ForeName = data.fkInfo.value
+          }
+          
           this.openZd = true;
           this.openZd = true;
           this.title = "修改字段信息";
           this.title = "修改字段信息";
         });
         });