yrik 4 жил өмнө
parent
commit
62e2caaa4d

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

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