yrik 4 years ago
parent
commit
62e2caaa4d
1 changed files with 4 additions and 1 deletions
  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
           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 = "修改字段信息";
         });