Jelajahi Sumber

fix:修复“替换对象中的null为空字符串”提交报错问题

liujiayin 2 tahun lalu
induk
melakukan
b71bc180db
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 1
      src/business/platform/form/utils/custom/joinCURD.js
  2. 1 0
      src/utils/util.js

+ 1 - 1
src/business/platform/form/utils/custom/joinCURD.js

@@ -2,7 +2,7 @@ import request from '@/utils/request'
 import md5 from 'js-md5';
 import { processCreate, processEdit } from './process'
 import { requestType, requestPath } from './requestType'
-
+import { mapValues } from 'lodash'
 // 请求方式默认POST
 const post = (method, data, type = 'post') => {
     let path = requestType[method]

+ 1 - 0
src/utils/util.js

@@ -15,6 +15,7 @@
 import log from './util.log.js'
 import cookies from './util.cookies.js'
 import XSS from 'xss'
+import { mapValues } from 'lodash'
 const rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g
 
 const util = {