You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug反馈 :在处理object类型时,似乎有点小问题: let result = {} if (typeof data === 'object') { result = data // 数组给了两次值 if (Array.isArray(data)) { result.list = data } } else { result.data = data }
2.1 简单描述下报错
举例:data为数组[0,1,2]===>result就为===>0,1,2,list:[0,1,2]
2.2 你期望什么结果 result = data if (Array.isArray(data)) { result.list = data }
修改为 if (Array.isArray(data)) { result.list = data } else {result = data}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: