Ver código fonte

报错问题

lxf 2 anos atrás
pai
commit
e46c3bf085
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/components/byForm/index.vue

+ 3 - 3
src/components/byForm/index.vue

@@ -480,9 +480,9 @@ const handleSubmit = async (onSubmit) => {
         if (item.type == "json") {
           form[item.prop] = JSON.stringify(form[item.prop]);
         }
-        if (item.type == 'input') {
-          form[item.prop] = form[item.prop].trim();
-        }
+        // if (item.type == 'input') {
+        //   form[item.prop] = form[item.prop].trim();
+        // }
       });
       emit("update:modelValue", form);
       onSubmit();