Explorar el Código

improve: 代码生成默认值判断

From-wh hace 2 años
padre
commit
00ed8ec7e6
Se han modificado 1 ficheros con 1 adiciones y 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表数据');
               }
             }