Преглед на файлове

fix:更新参数问题修复

johnsen преди 4 месеца
родител
ревизия
643c934368
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/business/platform/form/utils/custom/joinCURD.js

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

@@ -55,7 +55,7 @@ const post = (
   const requestUrl = `${BASE_URL}${normal[type]}`
   const isQueryType = type === 'query'
   if (type === 'update') {
-    const params = Object.isObject(data) ? data : JSON.parse(data)
+    const params = typeof data === 'object' ? data : JSON.parse(data)
     if (!params.updList || params.updList.length < 1) {
       console.log('update更新请求参数为空中断请求!')
       return