Просмотр исходного кода

fix:更新参数问题修复

johnsen 4 месяцев назад
Родитель
Сommit
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