Explorar o código

improve: 代码生成默认值判断

From-wh %!s(int64=2) %!d(string=hai) anos
pai
achega
00ed8ec7e6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      template/admin/src/pages/system/codeGeneration/index.vue

+ 1 - 1
template/admin/src/pages/system/codeGeneration/index.vue

@@ -92,7 +92,7 @@ export default {
           if (this.$refs.Foundation.tableField.length)
             for (let i = 0; i < this.$refs.Foundation.tableField.length; i++) {
               const el = this.$refs.Foundation.tableField[i];
-              if (!el.field || !el.file_type || !el.default || !el.comment) {
+              if (!el.field || !el.file_type || !el.comment) {
                 return this.$Message.warning('请完善sql表数据');
               }
             }